Skip to main content
PATCH
/
settings
/
staff
Update Staff Member
curl --request PATCH \
  --url https://api.callgency.com/settings/staff \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "staff_id": "<string>",
  "role": 2
}
'
This endpoint allows you to update the role of an existing staff member in your company.

Request Body

  • staff_id (string, required): ID of the staff member to update
  • role (integer, required): New role ID for the staff member

Example Request

curl --request PATCH \
  --url https://api.callgency.com/settings/staff \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "staff_id": "<string>",
    "role": 2
  }'

Response

Returns the updated staff member details with the new role assignment.

Authorizations

Authorization
string
header
required

Company API Key

Body

application/json

Staff update details

staff_id
string
required

ID of the staff member to update

role
integer
required

New permission level (1=read, 2=write, 3=create, 4=admin)

Required range: 1 <= x <= 4

Response

Staff member updated successfully