Modules
Modules are the data types of your workspace (for example Contacts or Matters). These routes list, inspect, create, change and delete modules and list their fields.
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 |
|---|---|---|
modules/list | DocktixCRM.modules.READ | List your modules |
modules/details | DocktixCRM.modules.READ | Get one module |
modules/fields/list | DocktixCRM.modules.READ | List a module's fields |
modules/create | DocktixCRM.modules.CREATE | Create a module |
modules/update | DocktixCRM.modules.UPDATE | Rename or relabel a module |
modules/delete | DocktixCRM.modules.DELETE | Delete a module |
Identifying a module
Send Module_Id or Module_Api (the module's API name). If you send both, they must refer to the same module. A missing identifier answers 400; a module that does not exist in your firm answers 404 Module not found.
List modules
{api_domain}/docktix/api/v1/modules/listNo body. Details is an array of your modules.
Get module details
{api_domain}/docktix/api/v1/modules/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 |
Module_Id or Module_Api | string | Required(either one) | The module |
List a module's fields
{api_domain}/docktix/api/v1/modules/fields/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 |
Details is an array of the module's fields. Use the field keys in the Data object of the Records routes.
Create a module
{api_domain}/docktix/api/v1/modules/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_Name | string | Required | Name |
Module_Label | string | Required | Display label |
Module_Api | string | Required | Unique API name in your firm |
Module_Type | string | Optional | Type |
Module_Icon | string | Optional | Icon |
Module_Status | string | Optional | Status |
Details is the new module id. 409 if a module with this Module_Api already exists. Creating modules depends on your plan.
Update a module
{api_domain}/docktix/api/v1/modules/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 |
Module_Id or Module_Api | string | Required(either one) | The module (Module_Api cannot be renamed) |
Module_Name, Module_Label, Module_Icon | string | Conditionalat least one is required | New values |
Delete a module
{api_domain}/docktix/api/v1/modules/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 |
Module_Id or Module_Api | string | Required(either one) | The module |
Confirm | boolean | Required | Must be true; the call is refused without it |