Update Account
PUT /v1/accounts/{id}
Updates an existing account. Only the fields provided in the request body are updated.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <token> |
Content-Type | Yes | application/json |
X-Target-Server | Yes | accounts |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | Account ID |
Request Body
All fields are optional. Only provided fields are updated.
| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
name | string | No | min: 2, max: 255 | New account name |
status | integer | No | Must be a valid account status | New account status |
{
"name": "Updated Account Name",
"status": 2
}
Response
204 No Content
Account updated successfully. No response body.
400 Bad Request
Validation error.
401 Unauthorized
Invalid or missing token.
404 Not Found
Account not found or does not belong to your node.