Help Center> CodeArts Repo> API Reference> APIs> User> HTTPS account and password verification
Updated on 2023-09-12 GMT+08:00

HTTPS account and password verification

Function

Check whether the user name and password entered when a user uploads or downloads code using HTTPS are valid.

URI

POST /v2/user/{iam_user_uuid}/validate-https-info

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

iam_user_uuid

Yes

String

User iam_user_uuid

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the user token.

It can be obtained by calling the IAM API (value of X-Subject-Token in the response header).

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

pwd

Yes

String

HTTPS password

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

error

Error object

Response error.

result

String

Result

status

String

Status code in a response

Table 5 Error

Parameter

Type

Description

code

String

Error Codes

message

String

Error message

Example Requests

POST https://{endpoint}/v2/user/{iam_user_uuid}/validate-https-info

{
  "pwd" : "repo@123"
}

Example Responses

Status code: 200

OK

{
  "result" : "verificationPassed",
  "status" : "success"
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.