POST
/
api
/
v1
/
realms
/
{realmId}
/
quests
/
{questId}
/
tasks
curl --request POST \
  --url https://api.drip.re/api/v1/realms/{realmId}/quests/{questId}/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "<string>",
  "description": "<string>",
  "config": {}
}'
{
  "data": {
    "id": "<string>",
    "questId": "<string>",
    "name": "<string>",
    "type": "<string>",
    "description": null,
    "config": null,
    "triggers": [
      {
        "id": "<string>",
        "taskId": "<string>",
        "type": "<string>",
        "config": null,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "conditions": [
      {
        "id": "<string>",
        "taskId": "<string>",
        "type": "<string>",
        "config": null,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "actions": [
      {
        "id": "<string>",
        "taskId": "<string>",
        "type": "<string>",
        "config": null,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "fromTransitions": [
      {
        "id": "<string>",
        "fromTaskId": "<string>",
        "toTaskId": null,
        "condition": null,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "toTransitions": [
      {
        "id": "<string>",
        "fromTaskId": "<string>",
        "toTaskId": null,
        "condition": null,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API Key

Path Parameters

realmId
string
required

Body

application/json
name
string
required
type
string
required
description
string
config
object

Response

201
application/json
Default Response
data
any