Request

POST https://api.yourpayroll.co.uk/api/v2/business/{businessId}/rostershift/create

Path parameters

Parameter name Value Description Additional
businessId string Required

Query parameters

Parameter name Value Description Additional
publish boolean

publish the shift when created.

Required

Request body

The request body takes a complete RosterShiftEditModel resource, containing the following writable properties:

{
    "copyId": "int32",
    "employeeId": "int32",
    "endTime": "date-time",
    "locationId": "int32",
    "resourceId": "int32",
    "startTime": "date-time"
}

Properties

Name Type Description
copyId int32 Nullable
employeeId int32 Nullable
endTime date-time DateTime
locationId int32 Int32
resourceId int32 Nullable
startTime date-time DateTime

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK