Redemption TargetsApply batch redemption assignments

Apply batch redemption assignments

Applies safe batch assignments and reports assignments that were skipped.

curl -X POST "http://localhost:8080/api/products/redemption-targets/batch" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "assignments": [
    {
      "product_id": 123,
      "model_id": 123,
      "redeem_url": "example_string"
    }
  ]
}'
{
  "applied": 42,
  "skipped": [
    {
      "product_id": 123,
      "reason": "example_string"
    }
  ]
}
POST
/api/products/redemption-targets/batch
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT access token, or refresh token for the token refresh endpoint.

JWT access token, or refresh token for the token refresh endpoint.
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT access token, or refresh token for the token refresh endpoint.

Body

application/json

Responses

appliedinteger
Required

Number of assignments applied.

skippedarray
Required