> ## Documentation Index > Fetch the complete documentation index at: https://docs.xtremepush.com/llms.txt > Use this file to discover all available pages before exploring further. # Cancel quest ## OpenAPI ````json POST /p2e/players/@me/quests/{quest_id}/cancel { "openapi": "3.0.0", "info": { "title": "Loyalty API", "version": "1.0.0", "description": "Combined API documentation. Includes: Player API, Admin API, Redeem Options API, Notifications API" }, "servers": [], "tags": [ { "name": "Admin", "description": "Endpoint with unlimited access" }, { "name": "Users", "description": "Endpoint to get information for one or more users" }, { "name": "Tokens", "description": "Tokens related endpoints" }, { "name": "Perks", "description": "Perks related endpoints" }, { "name": "System", "description": "Not business logic information" }, { "name": "Quests", "description": "Quests related endpoints" }, { "name": "Daily", "description": "Daily bonus related endpoints" }, { "name": "Rewards", "description": "Rewards related endpoints" }, { "name": "Achievements", "description": "Achievements related endpoints" }, { "name": "Segments", "description": "Segments related endpoints" }, { "name": "Reward Rules", "description": "Game rules related endpoints" }, { "name": "Level Config", "description": "Level config related endpoints" }, { "name": "Schedule", "description": "Schedule related endpoints" }, { "name": "Scheduled Events", "description": "Scheduled events related endpoints" }, { "name": "Leaderboards", "description": "Leaderboards related endpoints" }, { "name": "Auth", "description": "Authorization" }, { "name": "Documentation", "description": "Documentation" }, { "name": "Feedback", "description": "Feedback" }, { "name": "File System", "description": "File System" }, { "name": "Integrations", "description": "Integrations" }, { "name": "Rewarder", "description": "Rewarder" }, { "name": "Scopes", "description": "Scopes" }, { "name": "Widgets", "description": "Widgets" }, { "name": "Tile Layouts", "description": "Tile Layouts" }, { "name": "Redeem Options", "description": "" }, { "name": "Redeem Providers", "description": "" } ], "paths": { "/p2e/players/@me/quests/{quest_id}/cancel": { "post": { "operationId": "PlayerController_cancelQuest", "parameters": [ { "name": "quest_id", "required": true, "in": "path", "schema": { "type": "string" } }, { "name": "Scrimmage-Version", "in": "header", "description": "Version", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserQuestDTO" } } } } }, "security": [ { "bearer": [] } ], "summary": "Cancel quest", "tags": [ "Player", "Quests" ] } } }, "components": { "schemas": { "UserQuestDTO": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "challenges": { "type": "array", "items": { "$ref": "#/components/schemas/UserChallengeProgressDTO" } }, "title": { "type": "string" }, "description": { "type": "string" }, "iconUrl": { "type": "string" }, "completionPeriodInMinutes": { "type": "number" }, "acceptancePeriodInMinutes": { "type": "number" }, "isAcceptancePeriodInMinutesVisible": { "type": "boolean" }, "target": { "type": "number" }, "progress": { "type": "number" }, "periodInDays": { "type": "number" }, "periodDeadline": { "format": "date-time", "type": "string" }, "cancellable": { "type": "boolean" }, "tokensPrice": { "type": "number" }, "onClickRedirect": { "type": "string" }, "footnote": { "type": "string" }, "rewardBundle": { "$ref": "#/components/schemas/RewardBundleDTO" }, "user": { "$ref": "#/components/schemas/UserForQuestDTO" }, "quest": { "$ref": "#/components/schemas/QuestDTO" } }, "required": [ "status", "deadline", "challenges", "title", "description", "iconUrl", "completionPeriodInMinutes", "acceptancePeriodInMinutes", "isAcceptancePeriodInMinutesVisible", "target", "progress", "periodInDays", "periodDeadline", "cancellable", "tokensPrice", "onClickRedirect", "footnote", "rewardBundle", "user", "quest" ] }, "UserChallengeProgressDTO": { "type": "object", "properties": { "completed": { "type": "boolean" }, "progress": { "type": "number" } }, "required": [ "completed", "progress" ] }, "RewardBundleDTO": { "type": "object", "properties": { "rewards": { "type": "array", "items": { "$ref": "#/components/schemas/RewardDTO" } }, "modifiers": { "type": "array", "items": { "$ref": "#/components/schemas/RewardModifierDTO" } } }, "required": [ "rewards", "modifiers" ] }, "UserForQuestDTO": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "QuestDTO": { "type": "object", "properties": { "id": { "type": "string" }, "limit": { "type": "number" }, "category": { "type": "number" }, "title": { "type": "string" }, "description": { "type": "string" }, "iconUrl": { "type": "string" }, "group": { "type": "string" }, "scheduleFrom": { "format": "date-time", "type": "string" }, "scheduleTo": { "format": "date-time", "type": "string" }, "completionPeriodInMinutes": { "type": "number", "deprecated": true, "nullable": true }, "completionTime": { "$ref": "#/components/schemas/QuestCompletionTimeDTO" }, "acceptancePeriodInMinutes": { "type": "number" }, "isAcceptancePeriodInMinutesVisible": { "type": "boolean" }, "autoAccept": { "type": "boolean" }, "challenges": { "type": "array", "items": { "$ref": "#/components/schemas/ChallengeDTO" } }, "enabled": { "type": "boolean" }, "cancellable": { "type": "boolean" }, "tokensPrice": { "type": "number" }, "target": { "type": "number" }, "periodInDays": { "type": "number" }, "completionFrequencyInDays": { "type": "number" }, "onClickRedirect": { "type": "string" }, "footnote": { "type": "string" }, "rewardBundle": { "$ref": "#/components/schemas/RewardBundleDTO" }, "distributionRequirements": { "type": "array", "items": { "$ref": "#/components/schemas/ScrimLangRequirementGroupDTO" } }, "parentId": { "type": "string" } }, "required": [ "id", "limit", "category", "title", "description", "iconUrl", "group", "scheduleFrom", "scheduleTo", "completionPeriodInMinutes", "completionTime", "acceptancePeriodInMinutes", "isAcceptancePeriodInMinutesVisible", "autoAccept", "challenges", "enabled", "cancellable", "tokensPrice", "target", "periodInDays", "completionFrequencyInDays", "onClickRedirect", "footnote", "rewardBundle", "distributionRequirements", "parentId" ] }, "RewardDTO": { "type": "object", "properties": { "type": { "type": "string" }, "templateFields": { "type": "object" }, "config": { "type": "object" }, "visibility": { "type": "string" }, "amount": { "type": "object" }, "weight": { "type": "number" } }, "required": [ "type", "templateFields", "config", "visibility", "amount", "weight" ] }, "RewardModifierDTO": { "type": "object", "properties": { "type": { "type": "string" }, "config": { "type": "object" } }, "required": [ "type", "config" ] }, "QuestCompletionTimeDTO": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "none", "relative-time", "absolute-time" ] }, "config": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/QuestRelativeTimeConfigDTO" }, { "$ref": "#/components/schemas/QuestAbsoluteTimeConfigDTO" } ] } }, "required": [ "type", "config" ] }, "ChallengeDTO": { "type": "object", "properties": { "id": { "type": "number" }, "target": { "type": "number" }, "units": { "type": "string" }, "visible": { "type": "boolean" }, "successFilters": { "type": "array", "items": { "$ref": "#/components/schemas/ScrimLangRequirementGroupDTO" } }, "inRow": { "type": "boolean" }, "eventType": { "type": "string" }, "event": { "type": "string" }, "uniqueIdPath": { "type": "string" }, "progressEngine": { "type": "string" }, "progressEngineConfig": { "type": "object" } }, "required": [ "id", "target", "units", "visible", "successFilters", "inRow", "eventType", "event", "uniqueIdPath", "progressEngine", "progressEngineConfig" ] }, "ScrimLangRequirementGroupDTO": { "type": "object", "properties": { "elements": { "type": "array", "items": { "$ref": "#/components/schemas/ScrimLangRequirementDTO" } } }, "required": [ "elements" ] }, "QuestRelativeTimeConfigDTO": { "type": "object", "properties": { "minutes": { "type": "number", "minimum": 10 } }, "required": [ "minutes" ] }, "QuestAbsoluteTimeConfigDTO": { "type": "object", "properties": { "date": { "format": "date-time", "type": "string" } }, "required": [ "date" ] }, "ScrimLangRequirementDTO": { "type": "object", "properties": { "path": { "type": "string" }, "filter": { "$ref": "#/components/schemas/FilterConfigOperatorsDTO" }, "icon": { "type": "string" }, "title": { "type": "string" } }, "required": [ "path", "filter", "icon", "title" ] }, "FilterConfigOperatorsDTO": { "type": "object", "properties": { "type": { "type": "string" }, "operator": { "type": "string" }, "value": { "type": "object" } }, "required": [ "type", "operator", "value" ] } }, "securitySchemes": { "bearer": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" } } } } ````