Skip to Content
Open Retainer
Records

Update a record

PATCH
/v1/records/{id}

Set fields by API name. Supply expectedUpdatedAt to reject changes if the record has changed. Requires the write scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Path Parameters

id*string

Retainer identifier.

Formatuuid

Request Body

application/json
  1. body
values*
bindings?
expectedUpdatedAt?string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
source?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

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
created*boolean
fields*
record*
Example Request
curl -X PATCH 'https://retainer.tamloot.cc/v1/records/d2c0648c-2994-4f16-bdf1-a0136be6037d' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "values": {    "name": "Acme Ltd"  },  "source": "0f3a026b-dd58-4cb2-a871-98a8edabec97"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "created": true,  "fields": {    "property1": "applied",    "property2": "applied"  },  "record": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "object": "string",    "label": "string",    "fields": {      "property1": null,      "property2": null    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "createdBy": {      "via": "string",      "type": "user",      "id": "string",      "name": "string"    },    "updatedBy": {      "via": "string",      "type": "user",      "id": "string",      "name": "string"    },    "provenance": {      "property1": {        "pendingAssertion": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "recordId": "0470cfd4-dcf3-4d8c-ac28-58c6deeff25f",          "object": "string",          "recordLabel": "string",          "field": "string",          "value": null,          "currentValue": null,          "status": "active",          "reason": "outranked",          "actor": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "confidence": 0,          "sourceRecordId": "799244ea-56f2-4870-bdb3-37032b615ea2",          "isInitial": true,          "observedAt": "2019-08-24T14:15:22Z",          "createdAt": "2019-08-24T14:15:22Z",          "source": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "type": "string",            "title": "string",            "occurredAt": "2019-08-24T14:15:22Z"          },          "conflictingRecord": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "object": "string",            "label": "string"          },          "relationReferences": {            "property1": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            },            "property2": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            }          },          "reviewedBy": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "reviewedAt": "2019-08-24T14:15:22Z"        },        "assertion": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "recordId": "0470cfd4-dcf3-4d8c-ac28-58c6deeff25f",          "object": "string",          "recordLabel": "string",          "field": "string",          "value": null,          "currentValue": null,          "status": "active",          "reason": "outranked",          "actor": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "confidence": 0,          "sourceRecordId": "799244ea-56f2-4870-bdb3-37032b615ea2",          "isInitial": true,          "observedAt": "2019-08-24T14:15:22Z",          "createdAt": "2019-08-24T14:15:22Z",          "source": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "type": "string",            "title": "string",            "occurredAt": "2019-08-24T14:15:22Z"          },          "conflictingRecord": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "object": "string",            "label": "string"          },          "relationReferences": {            "property1": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            },            "property2": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            }          },          "reviewedBy": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "reviewedAt": "2019-08-24T14:15:22Z"        },        "pendingAssertionIds": [          "732649dc-43fe-487d-852b-96b1e8639ae4"        ]      },      "property2": {        "pendingAssertion": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "recordId": "0470cfd4-dcf3-4d8c-ac28-58c6deeff25f",          "object": "string",          "recordLabel": "string",          "field": "string",          "value": null,          "currentValue": null,          "status": "active",          "reason": "outranked",          "actor": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "confidence": 0,          "sourceRecordId": "799244ea-56f2-4870-bdb3-37032b615ea2",          "isInitial": true,          "observedAt": "2019-08-24T14:15:22Z",          "createdAt": "2019-08-24T14:15:22Z",          "source": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "type": "string",            "title": "string",            "occurredAt": "2019-08-24T14:15:22Z"          },          "conflictingRecord": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "object": "string",            "label": "string"          },          "relationReferences": {            "property1": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            },            "property2": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            }          },          "reviewedBy": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "reviewedAt": "2019-08-24T14:15:22Z"        },        "assertion": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "recordId": "0470cfd4-dcf3-4d8c-ac28-58c6deeff25f",          "object": "string",          "recordLabel": "string",          "field": "string",          "value": null,          "currentValue": null,          "status": "active",          "reason": "outranked",          "actor": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "confidence": 0,          "sourceRecordId": "799244ea-56f2-4870-bdb3-37032b615ea2",          "isInitial": true,          "observedAt": "2019-08-24T14:15:22Z",          "createdAt": "2019-08-24T14:15:22Z",          "source": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "type": "string",            "title": "string",            "occurredAt": "2019-08-24T14:15:22Z"          },          "conflictingRecord": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "object": "string",            "label": "string"          },          "relationReferences": {            "property1": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            },            "property2": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "object": "string",              "label": "string"            }          },          "reviewedBy": {            "via": "string",            "type": "user",            "id": "string",            "name": "string"          },          "reviewedAt": "2019-08-24T14:15:22Z"        },        "pendingAssertionIds": [          "732649dc-43fe-487d-852b-96b1e8639ae4"        ]      }    },    "relationReferences": {      "property1": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "object": "string",        "label": "string"      },      "property2": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "object": "string",        "label": "string"      }    },    "counts": {      "comments": -9007199254740991,      "facts": -9007199254740991,      "linked": -9007199254740991,      "claims": -9007199254740991    },    "event": {      "occurredAt": "2019-08-24T14:15:22Z",      "channel": "string",      "externalId": "string",      "title": "string",      "summary": "string",      "participants": {        "matched": [          {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "handle": "string",            "role": "string",            "recordId": "0470cfd4-dcf3-4d8c-ac28-58c6deeff25f"          }        ],        "unmatched": [          {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "handle": "string",            "role": "string",            "reason": "no_match",            "candidates": [              "ca3c6e0b-3eb2-4d6c-b8d9-7ce3bd020121"            ]          }        ]      },      "about": [        "dae22e5f-09ed-4916-9fa4-01d6902a20dd"      ],      "content": true,      "source": {        "sourceItemId": "f5556b82-7fa2-4511-87c1-adb3f77deeb7",        "revisionId": "bae12d01-48af-47b3-9304-b09ef0081cd6",        "current": true,        "previousEventId": "6aab701a-b5da-4540-bfbd-b77b75627881"      }    }  }}