Account
[GET] /rest/v1/accounts?include=incidentReportFlagGroup
[GET] /rest/v1/accounts/{id}?include=incidentReportFlagGroup
Client
[GET] /rest/v1/clients?include=incidentReportFlagGroup
[GET] /rest/v1/clients/{id}?include=incidentReportFlagGroup
Create a Client Site with Incident Report Flag Group
[POST] /rest/v1/clients
With payload:
{
"company": "Nazar Postman-2 Inc.",
"firstName": "",
"lastName": "",
"jobTitle": "",
"primaryPhone": "",
"secondaryPhone": "",
"type": "CLIENT",
"region": 2,
"status": "ACTIVE",
"email": "",
"closedDate": null,
"taxLocation": null,
"avatar": "",
==> "incidentReportFlagGroup": 29
}Patch a Client Site’s Incident Report Flag Group
[PATCH] /clients/{id}/settings/IncidentReportFlagGroup
{
"value": {value}
}
Department
[GET] /rest/v1/departments?include=incidentReportFlagGroup
[GET] /rest/v1/departments/{id}?include=incidentReportFlagGroup
Create a Department with Incident Report Flag Group
[POST] /rest/v1/departments
E.g.
{
"name": "Nazar DPRT ",
"details": "test",
"region": 5,
"status": "ACTIVE",
"taxLocation": null,
"incidentReportFlagGroup": 40
}
Result:
Update a Department Incident Report Flag Group
[PATCH] /rest/v1/departments/{id}
{
"name": "Mondira Department",
"details": "Mondira Department",
"region": 455,
"incidentReportFlagGroup": 40
}Zones
[GET] /rest/v1/zones?include=incidentReportFlagGroup
[GET] /rest/v1/zones/{id}?include=incidentReportFlagGroup
Zones Creation With, or Updating, Incident Report Flag Group
[POST] /rest/v1/zones
[PATCH] /rest/v1/zones/{id}
With payload:
{
"name": "Arial's Testing Zone",
"incidentReportFlagGroup": 34
}Result: