Path parameters
-
The SID of the Assistant that is the parent of the resource to update.
-
The Twilio-provided string that uniquely identifies the Query resource to update.
Body
-
The SID of an optional reference to the Sample created from the query.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^UF[0-9a-fA-F]{32}$
. -
The new status of the resource. Can be:
pending-review
,reviewed
, ordiscarded
POST
/v1/Assistants/{AssistantSid}/Queries/{Sid}
curl \
-X POST https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/Queries/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'SampleSid=string&Status=string'
Request example
{
"SampleSid": "string",
"Status": "string"
}
Request examples
{
"SampleSid": "string",
"Status": "string"
}
Response examples (200)
{
"account_sid": "string",
"assistant_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"dialogue_sid": "string",
"language": "string",
"model_build_sid": "string",
"query": "string",
"sample_sid": "string",
"sid": "string",
"source_channel": "string",
"status": "string",
"url": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"assistant_sid": "string",
"date_created": null,
"date_updated": "2025-05-04T09:42:00Z",
"dialogue_sid": "string",
"language": "string",
"model_build_sid": "string",
"query": "string",
"sample_sid": "string",
"sid": "string",
"source_channel": "string",
"status": "string",
"url": "https://example.com"
}