Skip to main content

Create shift assignment

POST 

https://api.maple.com/api/v1/shifts/:shiftId/assignments

Authorization: x-api-key

name: x-api-keytype: apiKeyin: headerdescription: Your Maple API Key

Create a shift assignment, creating the worker if it does not exist.

Request

Path Parameters

    shiftId stringrequired

Body

required
    data objectrequired
    attributes objectrequired
    externalUserId stringrequired
    firstName stringrequired
    lastName stringrequired
    workerType stringrequired

    Accepts CNA, LVN, RN, CAREGIVER, Medication Aide

    email string
    phone string
    type stringrequired

Responses

Schema
    data objectrequired
    attributes objectrequired
    externalUserId stringrequired
    firstName stringrequired
    lastName stringrequired
    email string
    phone string
    id stringrequired
    type stringrequired
curl -L -X POST 'https://api.maple.com/api/v1/shifts/:shiftId/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>' \
--data-raw '{
"data": {
"attributes": {
"externalUserId": "string",
"firstName": "string",
"lastName": "string",
"workerType": "string",
"email": "string",
"phone": "string"
},
"type": "string"
}
}'
Request Collapse all
Base URL
https://api.maple.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "attributes": {
      "externalUserId": "string",
      "firstName": "string",
      "lastName": "string",
      "workerType": "string",
      "email": "string",
      "phone": "string"
    },
    "type": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!