Body
-
The Field Type of the new field. Can be: a Built-in Field Type, the
unique_name
, or thesid
of a custom Field Type. -
An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the
sid
in the URL path to address the resource.
POST /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields
curl \
-X POST https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'FieldType=string&UniqueName=string'
Request example
{
"FieldType": "string",
"UniqueName": "string"
}
Request examples
{
"FieldType": "string",
"UniqueName": "string"
}
Response examples (201)
{
"account_sid": "string",
"assistant_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"field_type": "string",
"sid": "string",
"task_sid": "string",
"unique_name": "string",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"assistant_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"field_type": "string",
"sid": "string",
"task_sid": "string",
"unique_name": "string",
"url": "https://example.com"
}