API reference
Legal documents
Export and import legal documents.
Export legal documents (policies)
GET
Export the property's policies as a signed JSON file.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
property_id |
string | Yes | Property short UUID. |
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
project |
array | No | Optional policy projects to restrict the export. |
200Legal documents export file.application/json
Exported policy rows.
Exported policy version rows.
Exported policy attachment rows.
Exported policy country mapping rows.
Export type marker.
Possible values:
EXPORT_POLICYScope (company_id / property_id / project).
Payload signature, verified on import.
get/admin/properties/{property_id}/legal-documents/export
GET /api/admin/properties/{property_id}/legal-documents/export HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
200Legal documents export file.
{
"policies": {},
"policy_versions": {},
"policy_attachments": {},
"policy_countries": {},
"kind": "EXPORT_POLICY",
"filter": {},
"sv": "string"
}Import legal documents (policies)
POST
Import a policies bundle, replacing policies matching the export filter.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
property_id |
string | Yes | Property short UUID. |
Request bodyapplication/json
The policies export object, with its `sv` and `kind`.
200Imported records summary.application/json
Show properties
Recreated policies.
Recreated policy versions.
Recreated policy attachments.
Recreated policy country mappings.
post/admin/properties/{property_id}/legal-documents/import
POST /api/admin/properties/{property_id}/legal-documents/import HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "content": {} }
200Imported records summary.
{
"result": {
"policies": [{}],
"policy_versions": [{}],
"policy_attachments": [{}],
"policy_country": [{}]
}
}