Attach an Operator to a Service.

POST /v2/Services/{ServiceSid}/Operators/{OperatorSid}

Attach an Operator to a Service.

Path parameters

  • ServiceSid string Required

    The unique SID identifier of the Service.

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

  • OperatorSid string Required

    The unique SID identifier of the Operator. Allows both Custom and Pre-built Operators.

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

Responses

  • 202 application/json

    Accepted

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

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

      The unique SID identifier of the Service.

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

    • operator_sid string | null

      The unique SID identifier of the Operator.

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

    • url string(uri) | null

      The URL of this resource.

POST /v2/Services/{ServiceSid}/Operators/{OperatorSid}
curl \
 --request POST 'https://intelligence.twilio.com/v2/Services/{ServiceSid}/Operators/{OperatorSid}' \
 --user "username:password"
Response examples (202)
{
  "url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Operators/LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "service_sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "operator_sid": "LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}