Create a worker request rule and associate it with a location or location group
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
rule
object
required
ruleobjectrequestType
string
enum
required
Type of worker request (dropShift, shiftClaim, timeOffRequest)
Allowed:shiftClaimdropShifttimeOffRequestfindCoverageruleType
string
enum
required
Type of rule (autoApprove, autoReject)
Allowed:autoApproveautoRejectlocationUuid
uuid
Location UUID to associate the rule withlocationGroupUuid
uuid
Location group UUID to associate the rule with
201 Worker request rule created and associated successfully
400 Bad request
500 Internal server error
Example Request
xxxxxxxxxx
curl --request POST \
--url https://services.fountain.com/api/serviceattendance/processes/workerRequestRules/createAndAssociate \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"rule": {
"active": true,
"event": {
"type": "blocker"
},
"version": "0.1.0"
},
"requestType": "shiftClaim",
"ruleType": "autoApprove"
}
'
Response
``201