Update one record
Only fields the identity's `update` whitelist allows. Returns the updated record (with `warnings` when an after-hook warns).
PATCH
/api/objects/{name}/{id}Only fields the identity's update whitelist allows. Returns the updated record (with warnings when an after-hook warns).
Authorization
bearerAuth AuthorizationBearer <token>
API key present in auth.source (or resolved by an AuthResolver).
In: header
Path Parameters
name*string
Object name from objects/<name>/schema.json.
id*string
Record id — the record_key encoding of the (possibly composite) primary key; returned as weave_id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/objects/string/string" \ -H "Content-Type: application/json" \ -d '{}'{}