Modify the properties of a given Account

POST /2010-04-01/Accounts/{Sid}.json

Twilio accounts (aka Project) or subaccounts

Modify the properties of a given Account

Path parameters

  • Sid string Required

    The Account Sid that uniquely identifies the account to update

application/x-www-form-urlencoded

Body

  • Update the human-readable description of this Account

  • Status string

    Alter the status of this account: use closed to irreversibly close this account, suspended to temporarily suspend it, or active to reactivate it.

    Values are active, suspended, or closed.

Responses

  • 200

    OK

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

      The authorization token for this account

    • date_created string(date-time-rfc-2822) | null

      The date this account was created

    • date_updated string(date-time-rfc-2822) | null

      The date this account was last updated

    • friendly_name string | null

      A human readable description of this account

    • owner_account_sid string | null

      The unique 34 character id representing the parent of this account

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

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • status string | null

      The status of this account

      Values are active, suspended, or closed.

    • subresource_uris object(uri-map) | null

      Account Instance Subresources

    • type string | null

      The type of this account

      Values are Trial or Full.

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string&Status=active'
Request example
{
  "FriendlyName": "string",
  "Status": "active"
}
Response examples (200)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}