Report Flag Groups (Account, Client, Zone, Department)

Account

[GET] /rest/v1/accounts?include=incidentReportFlagGroup
[GET] /rest/v1/accounts/{id}?include=incidentReportFlagGroup

account postman.png
account web portal.png

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}
}

client patch.png

 

Department

[GET] /rest/v1/departments?include=incidentReportFlagGroup

department portal.png

[GET] /rest/v1/departments/{id}?include=incidentReportFlagGroup

department postman.png

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:

department postman.png

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 postman.png

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:

zone update mixed.png

 

Was this article helpful?
0 out of 0 found this helpful

Articles in this section