# Grant entitlement (admin) Grants entitlement to user. AttentionGame codes or games for DRM free platform can be granted only. Endpoint: POST /v2/project/{project_id}/admin/entitlement/grant Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 ## Request fields (application/json): - `user_external_id` (string, required) Unique user identifier. Example: "user-external-id" - `game` (object, required) Object with game properties. Example: {"sku":"com.xsolla.game_1"} - `game.sku` (string, required) Unique key package ID. Example: "theGreatestGameSku" - `drm` (object, required) Object with DRM properties. Example: {"sku":"com.xsolla.key_1"} - `drm.sku` (string, required) Unique DRM ID. Enum: "steam", "playstation", "xbox", "uplay", "origin", "drmfree", "gog", "epicgames", "nintendo_eshop", "discord_game_store", "oculus", "rockstar", "viveport", "stadia" - `code` (string,null) Game code of the game. Example: "AAAA-BBBB-CCCC-DDDD" - `mode` (string, required) What type of entitlements should be granted. If the parameter is set to sandbox, the entitlement will be granted to the user in the sandbox mode. If the parameter is set to default, the entitlement will be granted to the user in the live mode. Enum: "default", "sandbox" - `user_country` (string,null) User's country. Example: "US" ## Response 403 fields (application/json): - `statusCode` (integer) Example: 403 - `errorCode` (integer) - `errorMessage` (string) Example: "Authorization header not sent." - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 404 fields (application/json): - `statusCode` (integer) Example: 404 - `errorCode` (integer) Example: 4603 - `errorMessage` (string) Example: "[0401-4603]: Game code not found." - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 422 fields (application/json): - `statusCode` (integer) Example: 422 - `errorCode` (integer) Example: 5103 - `errorMessage` (string) Example: "[0401-5103]: Selected drm is not drmfree." - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 200 fields