Create a new Supporting Document.

POST /v2/RegulatoryCompliance/SupportingDocuments

Create a new Supporting Document.

application/x-www-form-urlencoded

Body

  • FriendlyName string Required

    The string that you assigned to describe the resource.

  • Type string Required

    The type of the Supporting Document.

  • Attributes

    The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types.

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
    • sid string | null

      The unique string created by Twilio to identify the Supporting Document resource.

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

    • account_sid string | null

      The SID of the Account that created the Document resource.

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

    • friendly_name string | null

      The string that you assigned to describe the resource.

    • mime_type string | null

      The image type uploaded in the Supporting Document container.

    • status string

      The verification status of the Supporting Document resource.

      Values are draft, pending-review, rejected, approved, expired, or provisionally-approved.

    • failure_reason string | null

      The failure reason of the Supporting Document Resource.

    • errors array | null

      A list of errors that occurred during the registering RC Bundle

    • type string | null

      The type of the Supporting Document.

    • attributes object | null

      The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.

    • date_created string(date-time) | null

      The date and time in GMT when the resource was created specified in ISO 8601 format.

    • date_updated string(date-time) | null

      The date and time in GMT when the resource was last updated specified in ISO 8601 format.

    • url string(uri) | null

      The absolute URL of the Supporting Document resource.

POST /v2/RegulatoryCompliance/SupportingDocuments
curl \
 --request POST 'https://numbers.twilio.com/v2/RegulatoryCompliance/SupportingDocuments' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Type=type&Attributes=%7B%7D&FriendlyName=friendly_name'
Request example
{"Type"=>"type", "Attributes"=>"{}", "FriendlyName"=>"friendly_name"}
Response examples (201)
{
  "sid": "RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://numbers.twilio.com/v2/RegulatoryCompliance/SupportingDocuments/RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "type": "type",
  "errors": null,
  "status": "draft",
  "mime_type": "mime_type",
  "attributes": {
    "last_name": "bar",
    "first_name": "foo"
  },
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "2019-07-31T02:11:52Z",
  "date_updated": "2019-07-31T02:11:52Z",
  "friendly_name": "friendly_name",
  "failure_reason": null
}