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

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