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

# Activate a perk. If perk can't be activated, potential replacements will be sent

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/players/@me/perks/{id}/activate": {
      "post": {
        "operationId": "PlayerController_activatePerk",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "scrimmage-namespace",
            "in": "header",
            "description": "Namespace",
            "required": true,
            "schema": {
              "type": "string",
              "default": "staging"
            }
          },
          {
            "name": "Scrimmage-Version",
            "in": "header",
            "description": "Version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivatePerkDTO"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Activate a perk. If perk can't be activated, potential replacements will be sent",
        "tags": [
          "Player",
          "Perks"
        ]
      }
    }
  },
  "info": {
    "title": "Player API",
    "description": "API for player interaction",
    "version": "1.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "Perks",
      "description": "Perks 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"
      }
    },
    "schemas": {
      "ActivatePerkDTO": {
        "type": "object",
        "properties": {
          "perkToReplace": {
            "type": "number"
          }
        },
        "required": [
          "perkToReplace"
        ]
      }
    }
  },
  "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
    }
  }
}
```