Create a new staff member under a specific location.
Request
Body Params application/json
{
"name": "John Doe",
"email": "john.doe@example.com",
"role": "Manager",
"location_id": "67890"
}
Request Code Samples
curl --location --request POST '/staff' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "John Doe",
"email": "john.doe@example.com",
"role": "Manager",
"location_id": "67890"
}'
Responses
application/json
Staff member created successfully
{
"id": "12345",
"name": "John Doe",
"email": "john.doe@example.com",
"role": "Manager",
"location_id": "67890",
"created_at": "2023-08-25T14:30:00Z"
}
Modified at 2024-12-17 09:12:01