SQ_SetAgentCustomStatusMapping
SQ_SetAgentCustomStatusMapping
Adds a status if there is no match for the given internal status and renames it if there is a match. It means that if the passed **sq_status_name** parameter is not in the mapping table, a new entry is created in there; if it is, the **name** field in its mapping is replaced with **custom_status_name**.
**Example request:** Add/rename a status depending on the presence of an internal status in agent_status_mapping.
Authentication
AuthorizationBearer
Voximplant Management API uses signed JWT tokens generated from your service-account private key. Pass the token in the `Authorization` header as a Bearer value:
```
Authorization: Bearer $VOXIMPLANT_TOKEN
```
See [Authorization](/api-reference/management-api/authorization) for ready-to-copy snippets in bash, Python, Node.js and Go that turn your `credentials.json` into a token.
Query parameters
sq_status_name
Status name
custom_status_name
Custom status name
application_id
Application ID
Response
Successful response
result
Returns 1 if the request has been completed successfully