Create

Description

Create a new case action on a specified case. This does not overwrite other actions that may exist on the case.

Request

HTTP Method: POST

Parameter Description
url The URL of the case action (webhook or page URL).
label User specified field to identify the case action.
action_type The case action type (webhook or page).
action_text Optional The text for the button to execute the action.
Path Parameter Description
case_id The ID of the case.

Sample request

curl -X POST \
  https://<<META.tenant.domain>>/api/v2/cases/<<case_id>>/actions \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>' \
  -d '{
        "url": "https://example.tines.com",
        "label": "label",
        "action_type": "webhook",
        "action_text": "Open form"
      }'

Response

A successful request will return a JSON object describing the newly created case action.

Field description

Parameter Description
case_id The ID of the case.
id The case action ID.
url The URL of the case action.
label The label of the case action.
action_type The case action type (webhook or page).
action_text The text for the button to execute the action.
story_name Will be populated if the URL matches that of a page or webhook in an existing story.
story_emoji The associated story's emoji icon.
created_at ISO 8601 Timestamp representing creation date and time of the case action.
updated_at ISO 8601 Timestamp representing last updated date and time of case action.

Sample response

{
  "case_id": 42,
  "id": 1,
  "url": "https://tenant.tines.com/webhook/abc/",
  "label": "Claim case",
  "story_name": "Case Management",
  "story_emoji": ":fire:",
  "action_type": "webhook",
  "action_text": "Open form",
  "created_at": "2023-10-31T15:42:00Z",
  "updated_at": "2023-10-31T16:42:00Z"
}
Was this helpful?