Skip to main content
POST
Create or update a legal document

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:
save
csrf_token
string
required
Example:

"abc123def456"

id
integer | null
document_type
string
Example:

"terms_and_conditions"

document_title
string
Example:

"Terms & Conditions"

slug
string
Example:

"terms-and-conditions"

content
string
Example:

"## Terms of Service\n\nThese terms govern..."

is_active
boolean
Example:

true

Response

Document saved

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"