Patch document
PATCH/documents/docs/:path
Shallow-merges fields into the existing document data object. Requires client.documents permission.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error
Response shape
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"path": "players/42/progress",
"data": { "level": 11, "xp": 4500 }
}
Shallow-merge only: top-level keys in data are merged; nested objects are replaced wholesale.
cURL example
curl -X PATCH "https://mw-client-api.wonderfulcoast-218d579d.centralindia.azurecontainerapps.io/documents/docs/players/42/progress" \
-H "x-client-id: <client-id>" \
-H "x-client-secret: <client-secret>" \
-H "Authorization: Bearer <access-token>" \
-H "Content-Type: application/json" \
-d '{"data":{"level":11}}'