POST
/
{version}
/
service-records
/
batch
curl --request POST \
  --url https://api.perscom.io/{version}/service-records/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "resources": [
    {
      "user_id": 123,
      "document_id": 123,
      "author_id": 123,
      "text": "<string>"
    }
  ]
}'
{
  "data": [
    {
      "id": 123,
      "user_id": 123,
      "document_id": 123,
      "author_id": 123,
      "text": "<string>",
      "label": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

version
enum<string>
default:v2
required

The API version to use.

Available options:
v1,
v2

Query Parameters

include
enum<string>
Available options:
attachments,
author,
author.*,
comments,
comments.*,
document,
user,
user.*

Body

application/json
resources
object[]

Response

200
application/json
OK
data
object[]