Last updated 3 months ago
Body
200
const response = await fetch('https://api-v2.zealy.io/public/communities/{subdomain}/quests/{questId}', { method: 'PATCH', headers: { "x-api-key": "text", "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "recurrence": "daily", "description": {}, "retryAfter": 0, "archived": false, "published": false, "communityId": "123e4567-e89b-12d3-a456-426614174000", "categoryId": "123e4567-e89b-12d3-a456-426614174000", "conditionOperator": "AND", "conditions": [ { "type": "quest", "operator": "isCompleted", "value": "123e4567-e89b-12d3-a456-426614174000" } ], "rewards": [ { "type": "xp", "value": 0 } ], "tasks": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "type": "partnership", "settings": { "subdomain": "text" } } ], "claimLimit": 0, "isAutomaticWhenEmpty": true }