Update Account
This request updates an account, targeted by secure ID.
| patch | /accounts/{account_sid} |
| put | /accounts/{account_sid} |
Sample Request
A sample PATCH request to update the Account object, targeted by secure ID, with the values in the request body:
curl -X PATCH \
'https://api.carrierx.com/conference/v2/accounts/993a6552-b73b-41e5-a501-a788377ca8ed' \
-H 'Content-Type: application/json' \
--data-binary '{"name":"John W. Smith"}' \
-u 'conference_user_123:qwerty123'
Sample Response
200 response code with a serialized copy of the updated Account object:
{
"account_sid": "993a6552-b73b-41e5-a501-a788377ca8ed",
"properties": {},
"call_flow_sid": "fb2b69b1-6998-4cdc-b04c-a267c585f767",
"date_created": "2025-06-25T20:36:54.000Z",
"login": "conference_user_123",
"name": "John W. Smith"
}
An Account object can be updated using either a PATCH or PUT request.
-
A
PATCHrequest can be used to update one or more property values. When using aPATCHrequest, only the properties specified in the request payload will be updated, all other properties and values will remain the same. The account secure ID is passed in the query URL, and the values to be modified are passed in the request body. -
A
PUTrequest can be used to update an entire Account object. The account secure ID is passed in the query URL, and the entire Account object is passed in the request body.
Note, while all fields must be present in a PUT request, not all properties values may be modified after initial creation.
Path Arguments
| Parameter | Data Type | Description |
|---|---|---|
| account_sid required | string | The account secure ID. |
Body Arguments
JSON representation of the fields and values to be updated.
Fields that can be modified are:
propertiescall_flow_sidnamepassword
Refer to this table to view all fields that appear in the Account object.