application/json with the staff fields wrapped in a top-level Staff object. name, email_address, and role_id are required; email_address must be unique. password is optional. The new member is created as active and assigned to the current branch automatically. Requires the Add New Staff permission.202 with the new staff member's id. Creating a staff member may be blocked by your subscription's staff limit, which returns 402.curl --location --globoff 'https://.daftara.com/api2/staff' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"Staff": {
"name": "Jane Cooper",
"email_address": "jane.cooper@example.com",
"role_id": 2,
"password": "secret12",
"mobile": "+201000000000",
"country_code": "EG"
}
}'{
"result": "successful",
"code": 202,
"id": 512
}