PUT
/
client
/
admins
/
{admin_id}
curl --request PUT \
  --url https://api.helpyousponsor.com/v1/client/admins/{admin_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "admin@gmail.com",
  "first_name": "John",
  "last_name": "Doe",
  "group_id": "1",
  "client_id": "1",
  "id": 1
}'
{
  "message": "Admin details updated successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

admin_id
integer
required

The ID of the admin to be edited

Body

application/json

Admin details to be edited

The body is of type object.

Response

200
application/json

Admin details updated successfully

The response is of type object.