| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### rule

#### object

- **required**  
  ruleobject

- **requestType**  
  string  
  enum  
  required  
  Type of worker request (dropShift, shiftClaim, timeOffRequest)  
  Allowed:  
  `shiftClaim` `dropShift` `timeOffRequest` `findCoverage`

- **ruleType**  
  string  
  enum  
  required  
  Type of rule (autoApprove, autoReject)  
  Allowed:  
  `autoApprove` `autoReject`

- **locationUuid**  
  uuid  
  Location UUID to associate the rule with

- **locationGroupUuid**  
  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

```shell
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
```
