Update status of alarm between enabled and disabled

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://twilio.demo.bump-doc.com/doc/monitor_v2/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"monitor_v2 MCP server": {
  "url": "https://twilio.demo.bump-doc.com/doc/monitor_v2/mcp"
}
Close
PUT /v2/Alarms/{Sid}/status

Path parameters

  • Sid string Required

    Sid

application/json

Body Required

  • enabled boolean Required

    status of alarm

Responses

  • 204

    NO CONTENT

    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

  • 400 application/json

    BAD REQUEST

    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
    • message string

      Error message

    • code integer

      Twilio error code

    • user_error boolean

      Indicates if it was a user error

    • http_status_code integer

      Http error code returned

    • params object
      Hide params attribute Show params attribute object
      • * string Additional properties
    • more_info string

      More information link

    • status integer

      HTTP status code

  • 401 application/json

    UNAUTHORIZED

    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
    • message string

      Error message

    • code integer

      Twilio error code

    • user_error boolean

      Indicates if it was a user error

    • http_status_code integer

      Http error code returned

    • params object
      Hide params attribute Show params attribute object
      • * string Additional properties
    • more_info string

      More information link

    • status integer

      HTTP status code

  • 404 application/json

    NOT FOUND

    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
    • message string

      Error message

    • code integer

      Twilio error code

    • user_error boolean

      Indicates if it was a user error

    • http_status_code integer

      Http error code returned

    • params object
      Hide params attribute Show params attribute object
      • * string Additional properties
    • more_info string

      More information link

    • status integer

      HTTP status code

  • 500 application/json

    INTERNAL SERVER ERROR

    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
    • message string

      Error message

    • code integer

      Twilio error code

    • user_error boolean

      Indicates if it was a user error

    • http_status_code integer

      Http error code returned

    • params object
      Hide params attribute Show params attribute object
      • * string Additional properties
    • more_info string

      More information link

    • status integer

      HTTP status code

PUT /v2/Alarms/{Sid}/status
curl \
 --request PUT 'https://monitor.twilio.com/v2/Alarms/{Sid}/status' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"enabled":true}'
Request examples
{
  "enabled": true
}
Response examples (400)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "message": "string",
  "code": 42,
  "user_error": true,
  "http_status_code": 42,
  "params": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "more_info": "string",
  "status": 42
}
Response examples (401)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "message": "string",
  "code": 42,
  "user_error": true,
  "http_status_code": 42,
  "params": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "more_info": "string",
  "status": 42
}
Response examples (404)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "message": "string",
  "code": 42,
  "user_error": true,
  "http_status_code": 42,
  "params": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "more_info": "string",
  "status": 42
}
Response examples (500)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "message": "string",
  "code": 42,
  "user_error": true,
  "http_status_code": 42,
  "params": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "more_info": "string",
  "status": 42
}