Xsolla-logo

Revoke entitlement (admin)

post/v2/project/{project_id}/admin/entitlement/revoke

Revokes entitlement of user.

Attention

Game codes or games for DRM free platform can be revoked only.
SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
Request Body schema: application/json
user_external_id
required
string

Unique user identifier.

required
object

Object with game properties.

required
object

Object with DRM properties.

mode
required
string

What type of entitlements should be revoked. If the parameter is set to sandbox, the entitlement will be revoked from the user in the sandbox mode. If the parameter is set to default, the entitlement will be revoked from the user in the live mode.

Enum: "default" "sandbox"
Responses
204

Successful revoke.

403

Authorization header not sent.

422

Invalid request.

Request samples
application/json
{
  • "user_external_id": "user-external-id",
  • "game": {
    },
  • "drm": {
    },
  • "mode": "default"
}
Response samples
application/json
{
  • "statusCode": 403,
  • "errorCode": 0,
  • "errorMessage": "Authorization header not sent"
}