---
title: "Set Player Gameplay Limit"
method: POST
path: "/campaigns/{campaignId}/player-gameplay-limit"
---

# Set Player Gameplay Limit

`POST /campaigns/{campaignId}/player-gameplay-limit`

## Request

- Base URL: `https://gamify-api-us.optimove.net/adact`
- URL: `https://gamify-api-us.optimove.net/adact/campaigns/{campaignId}/player-gameplay-limit`
- Auth: none required

This endpoint allows you to set or update the maximum number of gameplays an individual player is allowed in a campaign.  Use it when you want to control how many times a specific player can play — for example, granting extra attempts as a reward, or tightening the limit for a particular customer.  The campaign must be configured with the **dynamic** gameplay limit type. Requests made against campaigns using any other gameplay limit type are rejected with a `400` response.

## Path parameters

- `campaignId` integer, required

## Request body

- object
  - `cid` string, required: The Optimove customer ID of the player.
  - `maxAllowedGameplaysCount` integer, required: The maximum number of gameplays the player is allowed in this campaign. Must be `1` or greater.

## Response `200`

200

- object

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/optimove/apis/gamify.md) - [All operations](https://skmtc.dev/optimove/apis/gamify/llms.txt) - [OpenAPI document](https://skmtc.dev/optimove/apis/gamify/revisions/a73b512db403?raw)
