Schema
List schema changes
GET
Requires the read scope.
bearerAuthheader
AuthorizationBearer <token>A workspace API key.
limit?integerMaximum items in this page.
Range
1 <= value <= 200Default
50cursor?stringThe opaque nextCursor from the previous page.
status?stringFilter by change status.
Value in
"applied""proposed""rejected""failed"Successful response.
application/json- response
changes*array<>total*integernextCursor*string|nullcurl -X GET 'https://retainer.tamloot.cc/v1/schema/changes' \ -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY'Example Response
{ "changes": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "applied", "operations": [ { "kind": "create_object", "object": { "nameSingular": "string", "namePlural": "string", "labelSingular": "string", "labelPlural": "string", "description": "string", "labelField": "string", "class": "entity", "owner": "system", "isProtected": true, "universalId": "47b43539-a01b-4328-9f99-1680f7644e61", "labelFieldLabel": "string" } } ], "request": [ { "op": "create_object", "object": { "universalId": "47b43539-a01b-4328-9f99-1680f7644e61", "class": "entity", "nameSingular": "string", "namePlural": "string", "labelSingular": "string", "labelPlural": "string", "description": "string", "labelField": "string", "fields": [] } } ], "isDestructive": true, "template": "string", "reason": "string", "requestedBy": { "via": "string", "type": "user", "id": "string", "name": "string" }, "decidedBy": { "via": "string", "type": "user", "id": "string", "name": "string" }, "appliedVersion": -9007199254740991, "error": "string", "createdAt": "2019-08-24T14:15:22Z", "decidedAt": "2019-08-24T14:15:22Z" } ], "total": 0, "nextCursor": "string"}