Update Branch

The Update Branch API allows you to modify the details of an existing branch in the system. This API is typically used by authorized user to manage branch information effectively.

API Method

PATCH

Endpoint

https://cebuana-apiuat.veryfyglobal.com/branches/{id}

Headers

Key
Value

Accept

application/json

Authorization

Bearer <YOUR_TOKEN>

Path Parameters

Parameter
Type
Required
Description

id

int

Yes

The unique identifier of the branch to be updated. Branch ID

Body Parameters

Parameter
Type
Required
Description

name

string

Yes

The updated name of the branch. Maximum length: 255 characters.

address

string

Yes

The updated physical address of the branch. Maximum length: 255 characters.

is_active

integer

Yes

Indicates if the branch is active. Use values defined in the Choice enum.

is_suspend

integer

Yes

Indicates if the branch is suspended. Use values defined in the Choice enum.

Example Request Body

{
    "name": "Updated Branch B",
    "address": "789 Updated St, New City, New Country",
    "is_active": 1,
    "is_suspend": 0
}

Response Sample

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

Last updated