Last updated 4 months ago
Was this helpful?
/public/communities/{subdomain}/quests
daily
weekly
monthly
once
AND
OR
curl -L \ --request POST \ --url 'https://api-v2.zealy.io/public/communities/{subdomain}/quests' \ --header 'x-api-key: text' \ --header 'Content-Type: application/json' \ --data '{"categoryId":"123e4567-e89b-12d3-a456-426614174000","name":"text","published":true,"claimLimit":0,"isAutomaticWhenEmpty":true,"recurrence":"daily","conditionOperator":"AND","conditions":[{"value":"123e4567-e89b-12d3-a456-426614174000","type":"quest","operator":"isCompleted"}],"description":{"type":"text","attrs":{"ANY_ADDITIONAL_PROPERTY":"anything"},"marks":[{"type":"text","attrs":{"target":"_blank","ANY_ADDITIONAL_PROPERTY":"anything"},"ANY_ADDITIONAL_PROPERTY":"anything"}],"ANY_ADDITIONAL_PROPERTY":"anything"},"retryAfter":0,"rewards":[{"type":"xp"},{"method":{"max":1,"type":"fcfs"}}],"tasks":[{"type":"partnership","settings":{"subdomain":"text"}}]}'
{ "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "retryAfter": 1, "archived": true, "published": true, "communityId": "123e4567-e89b-12d3-a456-426614174000", "categoryId": "123e4567-e89b-12d3-a456-426614174000", "claimLimit": 1, "isAutomaticWhenEmpty": true, "recurrence": "daily", "conditionOperator": "AND", "description": {}, "conditions": [ { "value": "123e4567-e89b-12d3-a456-426614174000", "type": "quest", "operator": "isCompleted" } ], "rewards": [ { "type": "xp", "value": 1 } ], "tasks": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "type": "partnership", "settings": { "subdomain": "text" } } ] }