Skip to Content
Open Retainer
Schema

Read a schema change

GET
/v1/schema/changes/{id}

Requires the read scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Path Parameters

id*string

Retainer identifier.

Formatuuid

Response Body

Successful response.

application/json
  1. response
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
status*string
Value in"applied""proposed""rejected""failed"
operations*array<|||||||||||>
request*array<||||||||||>
isDestructive*boolean
template?string
reason*string|null
requestedBy*
decidedBy*|null
appliedVersion*|null
error*string|null
createdAt*string
Formatdate-time
decidedAt*|null
Example Request
curl -X GET 'https://retainer.tamloot.cc/v1/schema/changes/d2c0648c-2994-4f16-bdf1-a0136be6037d' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY'
Example Response
{  "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"}