Skip to main content
POST
/
api
/
admin
/
documents
Create or update a legal document
curl --request POST \
  --url https://api.propops.app/api/admin/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "save",
  "csrf_token": "abc123def456",
  "id": 123,
  "document_type": "terms_and_conditions",
  "document_title": "Terms & Conditions",
  "slug": "terms-and-conditions",
  "content": "## Terms of Service\n\nThese terms govern...",
  "is_active": true
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

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:

Authorization: Bearer a1b2c3d4e5f6...

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"