---
agentTools:
  projectIndex: https://scrimmage-rewards.readme.io/llms.txt
---

# Accept quest

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/players/@me/quests/{quest_id}/accept": {
      "post": {
        "operationId": "PlayerController_acceptQuest",
        "parameters": [
          {
            "name": "quest_id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "scrimmage-namespace",
            "in": "header",
            "description": "Namespace",
            "required": true,
            "schema": {
              "type": "string",
              "default": "staging"
            }
          },
          {
            "name": "scrimmage-user-id",
            "in": "header",
            "description": "User ID (required for apiKey tokens)",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Scrimmage-Version",
            "in": "header",
            "description": "Version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserQuestDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "tokenAuth": []
          }
        ],
        "summary": "Accept quest",
        "tags": [
          "Player",
          "Quests"
        ]
      }
    }
  },
  "info": {
    "title": "Player API",
    "description": "API for player interaction",
    "version": "1.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "Quests",
      "description": "Quests related endpoints"
    }
  ],
  "servers": [
    {
      "url": "https://{domain}.apps.scrimmage.co/p2e",
      "description": "Remote Cluster / Ingress",
      "variables": {
        "domain": {
          "description": "Domain of the cluster. Get one after registration",
          "default": "coinflip"
        }
      }
    },
    {
      "url": "/p2e",
      "description": "Cluster / Ingress"
    },
    {
      "url": "/",
      "description": "Local"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "tokenAuth": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "Please put as \"Token {token}\""
      }
    },
    "schemas": {
      "FilterConfigOperatorsDTO": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "operator": {
            "type": "string"
          },
          "value": {
            "type": "object"
          }
        },
        "required": [
          "type",
          "operator",
          "value"
        ]
      },
      "ScrimLangRequirementDTO": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "filter": {
            "$ref": "#/components/schemas/FilterConfigOperatorsDTO"
          },
          "icon": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "filter",
          "icon",
          "title"
        ]
      },
      "ScrimLangRequirementGroupDTO": {
        "type": "object",
        "properties": {
          "elements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScrimLangRequirementDTO"
            }
          }
        },
        "required": [
          "elements"
        ]
      },
      "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"
        ]
      },
      "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"
        ]
      },
      "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"
        ]
      },
      "QuestDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "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"
          },
          "acceptancePeriodInMinutes": {
            "type": "number"
          },
          "isAcceptancePeriodInMinutesVisible": {
            "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"
          },
          "rewardBundle": {
            "$ref": "#/components/schemas/RewardBundleDTO"
          },
          "distributionRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScrimLangRequirementGroupDTO"
            }
          },
          "parentId": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "limit",
          "category",
          "title",
          "description",
          "iconUrl",
          "group",
          "scheduleFrom",
          "scheduleTo",
          "completionPeriodInMinutes",
          "acceptancePeriodInMinutes",
          "isAcceptancePeriodInMinutesVisible",
          "challenges",
          "enabled",
          "cancellable",
          "tokensPrice",
          "target",
          "periodInDays",
          "completionFrequencyInDays",
          "onClickRedirect",
          "rewardBundle",
          "distributionRequirements",
          "parentId"
        ]
      },
      "UserQuestDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "status": {
            "type": "string"
          },
          "deadline": {
            "format": "date-time",
            "type": "string"
          },
          "challenges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "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"
          },
          "rewardBundle": {
            "$ref": "#/components/schemas/RewardBundleDTO"
          },
          "user": {
            "$ref": "#/components/schemas/UserForQuestDTO"
          },
          "quest": {
            "$ref": "#/components/schemas/QuestDTO"
          }
        },
        "required": [
          "id",
          "status",
          "deadline",
          "challenges",
          "title",
          "description",
          "iconUrl",
          "completionPeriodInMinutes",
          "acceptancePeriodInMinutes",
          "isAcceptancePeriodInMinutesVisible",
          "target",
          "progress",
          "periodInDays",
          "periodDeadline",
          "cancellable",
          "tokensPrice",
          "onClickRedirect",
          "rewardBundle",
          "user",
          "quest"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 45,
      "2": 139,
      "3": 169,
      "4": 112,
      "5": 184,
      "6": 145,
      "7": 0,
      "8": 86,
      "9": 190,
      "10": 6,
      "11": 105
    }
  }
}
```