Records
Create, read, change and delete the records of a module.
Host: api_domain · Path prefix: /docktix/api/v1/ · Method: POST (parameter-less reads are GET) · every POST body also carries Firm_Id and Email · see Authentication for headers and errors.
| Route | Scope | Purpose |
|---|---|---|
records/list | DocktixCRM.records.READ | List records of a module (paged) |
records/details | DocktixCRM.records.READ | Get one record |
records/create | DocktixCRM.records.CREATE | Create a record |
records/update | DocktixCRM.records.UPDATE | Change a record |
records/delete | DocktixCRM.records.DELETE | Delete a record |
The Data object holds field values keyed by field key (see modules/fields/list on the Modules page), for example { "first_name": "Jane" }. Records are JSON only; file and image uploads are not supported by these routes.
List records
{api_domain}/docktix/api/v1/records/list| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Module_Id or Module_Api | string | Required(either one) | The module |
Page | integer | Optional | Default 1 |
Per_Page | integer | Optional | Default 25, maximum 100 |
Sort_Key, Sort_Type | string | Optional | Sorting |
Record_Criteria | Optional | Filter criteria | |
Fields | array of strings | Optional | Only return these field keys |
Response: Details (records), Info (paging), Total_All_Records. Negative Page or Per_Page answers 400.
Get a record
{api_domain}/docktix/api/v1/records/details| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Record_Id | string | Required | The record |
Unknown or foreign ids answer 404 Record not found.
Create a record
{api_domain}/docktix/api/v1/records/create| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Module_Id or Module_Api | string | Required(either one) | The module |
Data | object | Required | Field values (not empty) |
Details is the new record id. If your firm has an approval rule for new records, the call answers 202 with Operation_Pending_Approval: true; the record stays hidden until approved.
Update a record
{api_domain}/docktix/api/v1/records/update| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Record_Id | string | Required | The record |
Data | object | Required | Only the keys you send are changed |
Delete a record
{api_domain}/docktix/api/v1/records/delete| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Record_Id | string | Required | The record |
Confirm | boolean | Required | Must be true; the call is refused without it |