Update an Account
PUT/v2/accounts/:accountID
Update the information contained on an account.
Request
Path Parameters
The ID of the account you want to retrieve.
- application/json
Body
- Account
- SubAccount
data object
Default value: account
Specifies the the type of object. Set this value to account
.
Specifies the name of the account.
Specifies the legal name of the account.
Specifies the registration ID. If specified, this field is checked for uniqueness.
The unique attribute associated with the account. For example, this could be an external reference from a separate company system. The maximum length is 2048 characters. Default is null
.
Default value: account
Specifies the the type of object. Set this value to account
.
Specifies the name of the account.
Specifies the legal name of the account.
Specifies the registration ID. If specified, this field is checked for uniqueness.
The unique attribute associated with the account. For example, this could be an external reference from a separate company system. The maximum length is 2048 characters. Default is null
.
Specifies the ID of the parent account.
Responses
- 200
- 400
- 404
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
data
The unique identifier for an Account.
Default value: account
The type of the object returned. Always use account.
The name of the account.
The legal name of the account.
The registration ID of the account. The maximum character limit for this field is 63.
The optional external ID reference. For example, this could be an external reference from a separate company system. The maximum length is 2048 characters. Default is null.
meta object
timestamps object
The date the account is created.
The date the account is last updated.
links object
A URL to the specific resource.
{
"data": {
"id": "deb6b25f-8451-4211-9a22-95610333df23",
"type": "account",
"name": "acc-name",
"legal_name": "acc-legal-name",
"registration_id": "00000000-0000-1000-8000-000f00000300",
"external_ref": "16bedceb-8b2d-4f82-a973-b0a8d8432708",
"meta": {
"timestamps": {
"created_at": "2021-02-23T09:40:33.882Z",
"updated_at": "2021-02-23T09:40:33.882Z"
}
},
"links": {
"self": "/v2/accounts/deb6b25f-8451-4211-9a22-95610333df23"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"detail": "Validation failed: field 'Name' on the 'min' tag.",
"status": "400",
"title": "Bad Request"
}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"detail": "account not found",
"status": "404",
"title": "Not Found"
}
]
}
Internal server error.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors Error[]required
A brief summary of the error.
The HTTP response code of the error.
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}