POST
/
api
/
v1
/
realms
/
{realmId}
/
quests
curl --request POST \
  --url https://api.drip.re/api/v1/realms/{realmId}/quests \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "type": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": null,
    "type": "<string>",
    "tasks": [
      {
        "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"
      }
    ],
    "participants": [
      {
        "id": "<string>",
        "userId": "<string>",
        "questId": "<string>",
        "progress": 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
description
string
type
string

Response

201
application/json
Default Response
data
any