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/1

Request Body

{
    "role": 1,
    "branch_id": 1,
    "employee_id": "emp123",
    "name": "John Doe Updated",
    "email": "[email protected]",
    "password": "NewStrongPassword123"
}

Response Sample

{    
    "message": "Ok",
    "data": []
}

Last updated