Update Auto-Response Setting
PUT/messaging_profiles/:profile_id/autoresp_configs/:autoresp_cfg_id
Update Auto-Response Setting
Request
Path Parameters
profile_id uuidrequired
autoresp_cfg_id uuidrequired
- application/json
Body
required
op Op (string)required
Possible values: [start
, stop
, info
]
keywords string[]required
resp_text Resp Text (string)
country_code Country Code (string)required
Responses
200: Successful Response
- application/json
default: Unexpected error
- application/json
Request samples
curl -L -X PUT 'https://api.telnyx.com/v2/messaging_profiles/:profile_id/autoresp_configs/:autoresp_cfg_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"op": "start",
"keywords": [
"keyword1",
"keyword2"
],
"resp_text": "Thank you for your message",
"country_code": "US"
}'
Response samples
{
"data": {
"op": "start",
"keywords": [
"START",
"BEGIN"
],
"resp_text": "Hello there!",
"country_code": "*",
"id": "54b7e19f-98a8-416f-81d1-a2782eade48b",
"created_at": "2023-03-10T21:54:46.293380+00:00",
"updated_at": "2023-03-10T21:54:46.293380+00:00"
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}