Skip to main content
POST
/
v1
/
companies
/
{company-id}
/
compliance_document_types
Create a Compliance Document Type
curl --request POST \
  --url https://api.tread-horizon.com/v1/companies/{company-id}/compliance_document_types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "external_id": "<string>",
  "description": "<string>",
  "field_type": "none",
  "has_expiration": false,
  "dispatch_gating": false,
  "required_vendors": false,
  "required_internal_drivers": false,
  "required_shared_drivers": false,
  "required_equipment": false
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "field_type": "none",
    "has_expiration": true,
    "dispatch_gating": true,
    "required_vendors": true,
    "required_internal_drivers": true,
    "required_shared_drivers": true,
    "required_equipment": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "external_id": "<string>",
    "description": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.tread.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Headers

Accept-Language
string
default:en

The Accept-Language request HTTP header indicates the natural language and locale that the client prefers.

Example:

"en"

Path Parameters

company-id
string<uuid>
required

Company ID

Body

application/json
name
string
required

Display name, must be unique for the company

external_id
string

External identifier for integration with external systems

description
string

Optional description

field_type
enum<string>
default:none
Available options:
none,
string,
number,
date,
boolean
has_expiration
boolean
default:false
dispatch_gating
boolean
default:false
required_vendors
boolean
default:false
required_internal_drivers
boolean
default:false
required_shared_drivers
boolean
default:false
required_equipment
boolean
default:false

Response

Created

data
ComplianceDocumentType-Read · object
required