curl --request PATCH \
--url https://prod.featherhq.com/api/v1/agents/{agentId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>"
}'
{
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"inboundPhoneNumbers": [
{
"id": "<string>"
}
],
"outboundPhoneNumbers": [
{
"id": "<string>"
}
],
"cekuraAgentId": 123,
"cekuraPhoneNumberId": "<string>"
}
}
Update an existing agent
curl --request PATCH \
--url https://prod.featherhq.com/api/v1/agents/{agentId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>"
}'
{
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"inboundPhoneNumbers": [
{
"id": "<string>"
}
],
"outboundPhoneNumbers": [
{
"id": "<string>"
}
],
"cekuraAgentId": 123,
"cekuraPhoneNumberId": "<string>"
}
}
Agent updated successfully
The response is of type object
.