# Change hotline for extension

{% hint style="info" %}
**Note:**

* API used for integration case as Partner.
* API\_KEY: [`<shop_key>`](https://docs.etelecom.vn/api-etelecom-english/partner/usage#retrieve-the-shop_key-information)
* [Partner](https://docs.etelecom.vn/api-etelecom-english/api-integration/partner/account) base\_url information
  {% endhint %}

{% openapi src="<https://1712041776-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzzTMjVbVjwTuSbEGC7Ya%2Fuploads%2FWUFJEkkaHbapFqmvlAg4%2FEtelecom.swagger.json?alt=media&token=3bf6fc05-db9d-47eb-a46e-a57b6619adbb>" path="$BASE\_URL.ETelecom/UpdateHotlineForExtension" method="post" %}
[Etelecom.swagger.json](https://1712041776-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzzTMjVbVjwTuSbEGC7Ya%2Fuploads%2FWUFJEkkaHbapFqmvlAg4%2FEtelecom.swagger.json?alt=media\&token=3bf6fc05-db9d-47eb-a46e-a57b6619adbb)
{% endopenapi %}

**Request:**

```
curl --location '$BASE_URL.Etelecom/UpdateHotlineForExtension' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
  "hotline_id": "string",
  "user_id": "string"
}'
```

**Response:**

```
{
  "updated": 0
}
```

**Request body structure:**

| School name                                                     | Data type | Describe    |
| --------------------------------------------------------------- | --------- | ----------- |
| <p>hotline\_id <br><mark style="color:red;">required</mark></p> | string    | ID hotline  |
| <p>user\_id </p><p><mark style="color:red;">required</mark></p> | string    | Employee ID |

**Return data attribute structure:**

| School name | Data type | Describe                                                                                                        |
| ----------- | --------- | --------------------------------------------------------------------------------------------------------------- |
| updated     | int       | <p>Status </p><p><strong><code>0</code></strong>: Failed </p><p><strong><code>1</code></strong>: Successful</p> |
