Skip to main content
POST
Create, update, or delete a document type

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Body

application/json
action
enum<string>
required
Available options:
create,
update,
delete
csrf_token
string
required
Example:

"abc123def456"

type_name
string
Example:

"Gas Safety Certificate"

document_type_id
integer
Example:

1

Response

Document type updated

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"