Update Account
The Update Account API allows authorized users to update the details of an existing account in the system.
API Method
PATCH
Endpoint
https://cebuana-apiuat.veryfyglobal.com/accounts/{id}
Headers
Key
Value
Accept
application/json
Authorization
Bearer <YOUR_TOKEN>
Path Parameters
Parameter
Type
Required
Description
id
integer
Yes
The unique identifier of the account to update. Account ID
Request Body
Form Data Parameters
Parameter
Type
Required
Description
role
integer
Yes
Refer Role Enums. Role ID
branch_id
integer
No
The ID of the branch associated with the account. Branch ID
employee_id
string
Yes
A unique identifier for the employee (must be unique across users).
name
string
Yes
The full name of the account holder.
email
string
Yes
The email address of the account holder (must be unique).
password
string
No
The password for the account (minimum 6 characters).
Example Request
Request URL
PATCH /accounts/1Request Body
{
"role": 1,
"branch_id": 1,
"employee_id": "emp123",
"name": "John Doe Updated",
"email": "[email protected]",
"password": "NewStrongPassword123"
}Response Sample
{
"message": "Ok",
"data": []
}{
"code": "422.000.000",
"message": "The role field is required. (and 6 more errors)",
"errors": {
"role": [
"The role field is required."
],
"branch_id": [
"The branch id field is required."
],
"employee_id": [
"The employee id field is required."
],
"name": [
"The name field is required."
],
"email": [
"The email field is required."
],
"is_active": [
"The is active field is required."
],
"is_suspend": [
"The is suspend field is required."
]
}
}{
"code": "403.000.000",
"message": "This action is unauthorized."
}Last updated