Puzzle pieces

Create a new piece for a Puzzle.

post
Authorizations
Body
slotnumberRequired

The slot/position of the puzzle piece.

loyalty_reward_idstringRequired

The ID of the puzzle piece reward associated with this piece.

puzzle_idstringRequired

The ID of the puzzle this piece would belong to.

Responses
200

Successful response

application/json
post
POST /partner-api/v2/admin/puzzle-pieces HTTP/1.1
Host: 
X-API-Key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 56

"slot=1&loyalty_reward_id='text'&puzzle_id='text'"
200

Successful response

{
  "puzzle_piece": {
    "id": "text",
    "puzzle_id": "text",
    "loyalty_reward_id": "text",
    "slot": 1
  }
}

Update an existing Puzzle Piece.

patch
Authorizations
Path parameters
puzzle_piece_idstringRequired

The ID of the puzzle piece to update.

Body
puzzle_idstringOptional

The ID of the puzzle this piece would belong to.

loyalty_reward_idstringOptional

The ID of the puzzle piece reward associated with this piece.

slotnumberOptional

The slot/position of the puzzle piece.

Responses
200

Successful response

application/json
patch
PATCH /partner-api/v2/admin/puzzle-pieces/{puzzle_piece_id} HTTP/1.1
Host: 
X-API-Key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 56

"puzzle_id='text'&loyalty_reward_id='text'&slot=1"
200

Successful response

{
  "puzzle_piece": {
    "id": "text",
    "puzzle_id": "text",
    "loyalty_reward_id": "text",
    "slot": 1
  }
}