Update a specific Sink

POST /v1/Sinks/{Sid}

Sink destination to send events to

Update a specific Sink

Path parameters

  • Sid string Required

    A 34 character string that uniquely identifies this Sink.

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

application/x-www-form-urlencoded

Body

  • Description string Required

    A human readable description for the Sink This value should not contain PII.

Responses

  • 200 application/json

    OK

    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
    • date_created string(date-time) | null

      The date that this Sink was created, given in ISO 8601 format.

    • date_updated string(date-time) | null

      The date that this Sink was updated, given in ISO 8601 format.

    • description string | null

      A human readable description for the Sink

    • sid string | null

      A 34 character string that uniquely identifies this Sink.

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

    • sink_configuration

      The information required for Twilio to connect to the provided Sink encoded as JSON.

    • sink_type string

      The Sink type. Can only be "kinesis" or "webhook" currently.

      Values are kinesis, webhook, segment, or email.

    • status string

      The Status of this Sink. One of initialized, validating, active or failed.

      Values are initialized, validating, active, or failed.

    • url string(uri) | null

      The URL of this resource.

POST /v1/Sinks/{Sid}
curl \
 --request POST 'https://events.twilio.com/v1/Sinks/{Sid}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Description=My+Kinesis+Sink'
Request example
{"Description"=>"My Kinesis Sink"}
Response examples (200)
{
  "sid": "DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "links": {
    "sink_test": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Test",
    "sink_validate": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Validate"
  },
  "status": "initialized",
  "sink_type": "kinesis",
  "description": "My Kinesis Sink",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "sink_configuration": {
    "arn": "arn:aws:kinesis:us-east-1:111111111:stream/test",
    "role_arn": "arn:aws:iam::111111111:role/Role",
    "external_id": "1234567890"
  }
}