/shifts/publish Permission level: 5

get/shifts/publish

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Query parameters

shiftsstring required

String containing an array of comma separated shift IDs (eg: "458,547,1001")

notifyinteger

enum[0,1,2] 0: Do not notify, 1: Notify employees, 2: Send notifications to employees & managers

messagestring
locationinteger

location id

positionsstring

String containing an array of comma separated position IDs (eg: "458,547,1001")

dont_delete_acknowledgementsinteger

enum[0,1]

Response

200

statusinteger
datastring
tokenstring

Example response

{
  "status": 1,
  "data": "1. shift published & 0 republished.",
  "token": "xxxxxxx"
}

Changes