API reference
Cases details
Cases, status updates, and access control.
Find cases
List the company's cases, with filters.
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
search |
string | No | Find by exact id or public_id; not a content search. |
status |
array | No | Filter by one or more statuses; no duplicates. |
property_id |
string | No | Filter by property ID. |
created_at_start |
string | No | Created on or after this time. |
created_at_end |
string | No | Created on or before this time. |
page |
integer | No | Page number. |
limit |
integer | No | Number of results per page. |
Show properties
Show properties
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDGET /api/admin/company/cases HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{
"meta": {
"current_page": 1,
"next_page": 2,
"prev_page": 1
},
"result": [{
"id": "string",
"public_id": "string",
"status": "PENDING",
"first_due_at": "string",
"resolution_due_at": "string",
"archive_at": "string",
"meta": {},
"system_case_type_id": "string",
"property_case_type_id": "string",
"system_case_type_category_id": 0,
"property_case_type_category_id": "string",
"system_case_type_reporting_id": 0,
"property_id": "string",
"company_id": "string",
"permissions": {},
"created_at": "string",
"updated_at": "string"
}]
}Create case
Create a case for a property.
Show properties
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDPOST /api/admin/company/cases HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "property_id": "string", "case_type_id": "string", "case_type_category_id": "string", "case_type_reporting_id": "string", "system_regulation_id": 0, "property_geo_rule_id": "string", "email": "string", "message": "string", "meta": {}, "fields": [ {} ], "country_id": "string", "state_id": "string", "first_response_period": 0, "resolution_period": 0, "archive_period": 0 }
{
"result": {
"id": "string",
"public_id": "string",
"status": "PENDING",
"first_due_at": "string",
"resolution_due_at": "string",
"archive_at": "string",
"meta": {},
"system_case_type_id": "string",
"property_case_type_id": "string",
"system_case_type_category_id": 0,
"property_case_type_category_id": "string",
"system_case_type_reporting_id": 0,
"property_id": "string",
"company_id": "string",
"permissions": {},
"created_at": "string",
"updated_at": "string"
}
}Export cases
Download matching cases as a JSON file. Requires super permission.
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
search |
string | No | Find by exact id or public_id; not a content search. |
status |
array | No | Filter by one or more statuses; no duplicates. |
property_id |
string | No | Filter by property ID. |
created_at_start |
string | No | Created on or after this time. |
created_at_end |
string | No | Created on or before this time. |
Show properties
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDShow properties
Show properties
Show properties
Show properties
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDGET /api/admin/company/cases/export HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
[null]
Read case
Get a single case by ID.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | The case ID. |
Show properties
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDShow properties
Show properties
Show properties
Show properties
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDGET /api/admin/company/cases/{id} HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{
"result": null
}Update case
Update a case's status, due dates, or metadata.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | The case ID. |
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDShow properties
PENDING OPEN IN_PROGRESS CLOSED EXPIRED ARCHIVEDPUT /api/admin/company/cases/{id} HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "status": "PENDING", "first_due_at": "string", "resolution_due_at": "string", "archive_at": "string", "meta": {} }
{
"result": {
"id": "string",
"public_id": "string",
"status": "PENDING",
"first_due_at": "string",
"resolution_due_at": "string",
"archive_at": "string",
"meta": {},
"system_case_type_id": "string",
"property_case_type_id": "string",
"system_case_type_category_id": 0,
"property_case_type_category_id": "string",
"system_case_type_reporting_id": 0,
"property_id": "string",
"company_id": "string",
"permissions": {},
"created_at": "string",
"updated_at": "string"
}
}Delete case
Soft-delete a case. Requires super permission.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | The case ID. |
Show properties
DELETE /api/admin/company/cases/{id} HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{
"result": {
"deleted": false
}
}Archive case
Archive a case and lock it from edits.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | The case ID. |
```schema response 200 On success, returns { result: { archived: true } }. If the case is already archived, returns an empty object {} with no result key.
{"type":"object","properties":{"result":{"type":"object","description":"Present only on success.","properties":{"archived":{"type":"boolean","example":true}}}}}
```http-response 200 On success, returns `{ result: { archived: true } }`. If the case is already archived, returns an empty object `{}` with no `result` key.
{
"result": {
"archived": true
}
}
POST /api/admin/company/cases/{id}/archive HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
Find case access
List users with access to this case.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
case_id |
string | Yes | The case ID. |
Show properties
GET /api/admin/company/cases/{case_id}/access HTTP/1.1 Host: {instance}.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{
"result": [{
"id": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"avatar_url": "string",
"can_read_redacted": false,
"can_write_redacted": false
}]
}