Skip to Content
Open Retainer
Comments

Add a comment

POST
/v1/records/{id}/comments

The caller must act as a user. Requires the write scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Path Parameters

id*string

Retainer identifier.

Formatuuid

Header Parameters

Idempotency-Key?string

Reuse the same key with the same request to retry.

Length1 <= length <= 200

Request Body

application/json
  1. body
body*string
Length1 <= length <= 10000

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
record*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
body*string
author*
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
editedAt*|null
Example Request
curl -X POST 'https://retainer.tamloot.cc/v1/records/d2c0648c-2994-4f16-bdf1-a0136be6037d/comments' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "body": "Loop in legal before renewal."}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "record": "4d59c234-2278-409a-b612-f158aa22befe",  "body": "string",  "author": {    "via": "string",    "type": "user",    "id": "string",    "name": "string"  },  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "editedAt": "2019-08-24T14:15:22Z"}