# Update Exam Login Info

The written test service provider of Feishu Hire, after receiving the [Create Written Test](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_exam/events/created) event and arranging the written test, should go through this interface
Return the result of the written test arrangement. If the arrangement is successful, the written test link must be returned; if the written test link requires login authentication, the login certificate(`username`, `password`) must be returned.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/hire/v1/eco_exams/:exam_id/login_info
HTTP Method | POST
Rate Limit | [1000 per minute、50 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.**<br>Enable any scope from the list | Update exam information in hiring(hire:exam)<br>Obtain exam information in hiring(hire:exam:readonly)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Path parameters

Parameter | Type | Description
---|---|---
exam_id | string | Written test ID. Can be obtained by the [Create Written Test](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_exam/events/created) event<br>**Example value**: "7178536692385679677"

### Request body

Parameter | Type | Required | Description
---|---|---|---
result | int | No | Status code. <br>* 0: Success<br>* Non-0: Failure error code within the service provider<br>**Example value**: 0
msg | string | No | Msg<br>**Example value**: "success"
exam_login_info | eco_exam_login_info | Yes | Login Info
exam_url | string | Yes | Written test link. If the returned link is already accompanied by the unique identity of the candidate and does not require login authentication, you can only return this link.<br>**Example value**: "https://www.exam.com/1234"
username | string | No | Login username.<br>**Note**: If the written test link requires login authentication, this login certificate must be returned<br>**Example value**: "waxsdfbhg"
password | string | No | Login password.<br>**Note**: If the written test link requires login authentication, this login certificate must be returned<br>**Example value**: "xxxxxx"

### Request body example
```json
{
    "result": 0,
    "msg": "success",
    "exam_login_info": {
        "exam_url": "https://www.exam.com/1234",
        "username": "waxsdfbhg",
        "password": "xxxxxx"
    }
}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-

### Response body example
```json
{
    "code": 0,
    "msg": "SUCCESS",
    "data": {}
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
500 | 1002001 | System error | Please locate the problem based on the actual error message or contact [Technical Support](https://applink.feishu.cn/TLJpeNdW)
400 | 1002851 | exam examinee status illegal | Please check the parameters `exam_id`

