POST
/
{version}
/
assignment-records
curl --request POST \
  --url https://api.perscom.io/{version}/assignment-records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": 123,
  "status_id": 123,
  "unit_id": 123,
  "position_id": 123,
  "specialty_id": 123,
  "document_id": 123,
  "author_id": 123,
  "type": "primary",
  "text": "<string>"
}'
{
  "data": {
    "id": 123,
    "user_id": 123,
    "status_id": 123,
    "unit_id": 123,
    "position_id": 123,
    "specialty_id": 123,
    "document_id": 123,
    "author_id": 123,
    "type": "primary",
    "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,
position,
specialty,
status,
unit,
unit.*,
user,
user.*

Body

application/json
user_id
integer
required
status_id
integer | null
unit_id
integer | null
position_id
integer | null
specialty_id
integer | null
document_id
integer | null
author_id
integer | null
type
enum<string>
Available options:
primary,
secondary
text
string | null

Supports HTML.

Response

201
application/json
OK
data
object