Ziwako Docs
ZiwakoRéférence APIOrders

Grant Order Access

POST
/orders/{id}/access

Authorization

X-API-Key<token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/orders/string/access" \  -H "Content-Type: application/json" \  -d '{    "targetType": "Profil",    "target": "string",    "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"    }  ]}