Create a timesheet flag 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
{
"rule": {
"active": true,
"event": {
"type": "blocker"
},
"version": "0.1.0"
},
"flagType": "review_required"
}
Responses
| Code | Description |
|---|---|
201 |
Timesheet flag rule created and associated successfully |
400 |
Bad request |
500 |
Internal server error |
Curl Example
curl --request POST \
--url https://services.fountain.com/api/serviceattendance/processes/timesheetFlagRules/createAndAssociate \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{\n "rule": {\n "active": true,\n "event": {\n "type": "blocker"\n },\n "version": "0.1.0"\n },\n "flagType": "review_required"\n}'
Try It!
Click Try It! to start a request and see the response here! Or choose an example:
- application/json