Please enable JavaScript to view this site.

PRD_IHE_003_Controls & Fines Implementation helper 1.3

Navigation: Appendix > Payload examples

Modifying a control done previously

Scroll Prev Top Next More

Request :

PATCH https://streetsmart.parkeon.com/sit1/enforcement/controls/v1/controls/5868

 

Payload:

[
 {
   "op": "replace",
   "path": "/controlStatus",
   "value": {"@id": "https://schema.parkeon.com/ControlStatusExemption"}
 },
 {
   "op": "add",
   "path": "/exemptionReason",
   "value": "Disabled person"
 }
]

 

Remark:

To be able to modify the stored control resource:

the resource must be previously retrieved to get its eTag

the PATCH request requires following elements in the header:

Content-Type: application/json-patch+json

If-Match: “[eTag previously retrieved]”