PATCH - leerbedrijflisa/verification-api GitHub Wiki
PATCH /verifications/{guid}
####Note:
A verification can only be patched as long as the status is "pending",
and the expiration date and time has not been reached.
Request
Data fields
| Field |
Description |
action |
Replace for changing the field with the new value. |
field |
The field to patch. |
value |
The value for the field. |
Patchable fields
| Fields |
Description |
DataType |
Allowed Values |
status |
The status of the verification. |
string |
'accepted' or 'rejected' |
Example
Content-Type: application/json
[{
"action": "replace",
"field": "status",
"value": "accepted"
}]
Response
Example
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "2c38a6d3-5c69-421c-bf54-bcd64a691b07",
"document": "http://mydocs.com/contract",
"user": "baseenhoorn",
"status": "accepted",
"signed": "2016-05-20T12:01:09.2393867+02:00",
"expires": "9999-12-31T23:59:59.9999999"
}