Create approval create

POST /v1/Content/{ContentSid}/ApprovalRequests/whatsapp

Path parameters

  • ContentSid string Required

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

application/json

Body Required

  • name string Required

    Name of the template.

  • category string Required

    A WhatsApp recognized template category.

Responses

  • 201 application/json

    Created

    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
    • name string | null
    • category string | null
    • content_type string | null
    • status string | null
    • rejection_reason string | null
    • allow_category_change boolean | null
POST /v1/Content/{ContentSid}/ApprovalRequests/whatsapp
curl \
 --request POST 'https://content.twilio.com/v1/Content/{ContentSid}/ApprovalRequests/whatsapp' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"name":"string","category":"string"}'
Request examples
{
  "name": "string",
  "category": "string"
}
Response examples (201)
{
  "name": "tree_fiddy",
  "status": "unsubmitted",
  "category": "UTILITY",
  "content_type": "twilio/location",
  "rejection_reason": "",
  "allow_category_change": true
}