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
email
string
Example:

"admin@gmail.com"

first_name
string
Example:

"John"

last_name
string
Example:

"Doe"

group_id
string
Example:

"1"

client_id
string
Example:

"1"

id
integer
Example:

1

Response

200
application/json
Admin details updated successfully
message
string
Example:

"Admin details updated successfully"