Updates the actions of an Task identified by {TaskSid}

POST /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions

TODO: Resource-level docs

Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}.

Path parameters

  • AssistantSid string Required

    The SID of the Assistant that is the parent of the Task for which the task actions to update were defined.

  • TaskSid string Required

    The SID of the Task for which the task actions to update were defined.

Body

  • The JSON string that specifies the actions that instruct the Assistant on how to perform the task.

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • assistant_sid string | null

      The SID of the Assistant that is the parent of the Task associated with the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^UA[0-9a-fA-F]{32}$.

    • The JSON string that specifies the actions that instruct the Assistant on how to perform the task

    • task_sid string | null

      The SID of the Task associated with the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^UD[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the TaskActions resource

POST /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions
curl \
 -X POST https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded"
Request example
{}
Request examples
{}
Response examples (200)
{
  "account_sid": "string",
  "assistant_sid": "string",
  "task_sid": "string",
  "url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "assistant_sid": "string",
  "task_sid": "string",
  "url": "https://example.com"
}