Ziwako Docs
ZiwakoRéférence APIOrders

Update Order Access

PATCH
/orders/{id}/access/{accessId}

Authorization

X-API-Key<token>

In: header

Path Parameters

id*string
accessId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/orders/string/access/string" \  -H "Content-Type: application/json" \  -d '{    "role": "viewer"  }'
{  "success": true,  "message": "string",  "code": "string",  "data": [    {      "_id": "string",      "targetType": "Profil",      "target": "string",      "role": "viewer",      "grantedBy": "string",      "grantedAt": "2019-08-24T14:15:22Z",      "revokedAt": "2019-08-24T14:15:22Z",      "status": "active"    }  ]}