Path parameters
-
The SID of the Assistant that is the parent of the new resource.
Body
-
StatusCallback string(uri)
The URL we should call using a POST method to send status information to your application.
-
UniqueName string
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}/ModelBuilds
curl \
-X POST https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/ModelBuilds \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'StatusCallback=https%3A%2F%2Fexample.com&UniqueName=string'
Request example
{
"StatusCallback": "https://example.com",
"UniqueName": "string"
}
Request examples
{
"StatusCallback": "https://example.com",
"UniqueName": "string"
}
Response examples (201)
{
"account_sid": "string",
"assistant_sid": "string",
"build_duration": 42,
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"error_code": 42,
"sid": "string",
"status": "enqueued",
"unique_name": "string",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"assistant_sid": "string",
"build_duration": 42,
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"error_code": 42,
"sid": "string",
"status": "enqueued",
"unique_name": "string",
"url": "https://example.com"
}