Update document or record
Motivation
Update a CDoc, WDoc, CRecord or WRecord using API
Functional Design
PATCH /api/v2/apps/{owner}/{app}/workspaces/{wsid}/docs/{pkg}.{table}/{id}
Headers
Key
Value
Authorization
Bearer {PrincipalToken}
Content-Type
application/json
Parameters
Parameter
Type
Description
owner
string
name of a user who owns the application
app
string
name of an application
wsid
int64
the ID of workspace
pkg, table
string
identifies a table (document or record)
id
int64
ID of a document or record
Body
CDoc/WDoc/CRecord/WRecord (fields to be updated)
Result
Code
Description
Body
200
OK
current WLog offset and the new IDs, see below
400
Bad Request, e.g. Record requires sys.ParentID
401
Unauthorized
403
Forbidden
404
Table Not Found
405
Method Not Allowed, table is an ODoc/ORecord
Example Result 200:
Last updated
Was this helpful?