Skip to content
Coritan Docs

Client API: Container Apps: Rules

The 4 Client API operations for rules.

View as Markdown

Part of Container Apps.

Method Path Summary
GET /api/v1/client/servers/{uuid}/rules List rules for a server
POST /api/v1/client/servers/{uuid}/rules Create a new rule
PUT /api/v1/client/servers/{uuid}/rules/{rule_uuid} Update a rule
DELETE /api/v1/client/servers/{uuid}/rules/{rule_uuid} Delete a rule

GET /api/v1/client/servers/{uuid}/rules

List rules for a server.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
uuid path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

A 200 response is a list; each item has these fields:

Field Type
[].id integer
[].uuid string
[].server_id integer
[].name string
[].trigger_type string
[].trigger_config Trigger Config
[].conditions array of any or object or null
[].actions array of any or object
[].enabled boolean
[].created_at string (date-time)
[].updated_at string (date-time) or null
[].last_triggered_at string (date-time) or null

POST /api/v1/client/servers/{uuid}/rules

Create a new rule.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
uuid path string yes

application/json (required)

Field Type Required
name string yes
trigger_type string yes
trigger_config Trigger Config no
conditions array of any or object or null no
actions array of any or object yes
enabled boolean no
Status Meaning
201 Success.
422 The request is not valid. detail lists each problem.

Fields of a 201 response:

Field Type
id integer
uuid string
server_id integer
name string
trigger_type string
trigger_config Trigger Config
conditions array of any or object or null
actions array of any or object
enabled boolean
created_at string (date-time)
updated_at string (date-time) or null
last_triggered_at string (date-time) or null

PUT /api/v1/client/servers/{uuid}/rules/{rule_uuid}

Update a rule.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
uuid path string yes
rule_uuid path string yes

application/json (required)

Field Type Required
name string or null no
trigger_type string or null no
trigger_config object or null no
conditions array of any or object or null no
actions array of any or object or null no
enabled boolean or null no
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Fields of a 200 response:

Field Type
id integer
uuid string
server_id integer
name string
trigger_type string
trigger_config Trigger Config
conditions array of any or object or null
actions array of any or object
enabled boolean
created_at string (date-time)
updated_at string (date-time) or null
last_triggered_at string (date-time) or null

DELETE /api/v1/client/servers/{uuid}/rules/{rule_uuid}

Delete a rule.

Authentication: an access token, sent as Authorization: Bearer <token>.

Name In Type Required
uuid path string yes
rule_uuid path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.