Skip to main content
PATCH
/
api
/
public
/
v1
/
games
/
{game}
/
decks
/
{id}
Update a deck (partial)
curl --request PATCH \
  --url https://api.flexslot.gg/api/public/v1/games/{game}/decks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Partner-Id: <api-key>' \
  --header 'X-Signature: <api-key>' \
  --data '
{
  "name": "<string>",
  "notes": "<string>",
  "visibility": [
    "<string>"
  ],
  "format_obj": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "youtube_url": "<string>",
  "legal": true,
  "thumbnail": "<string>",
  "is_archived": true,
  "source_external_id": "<string>",
  "source_external_version": "<string>",
  "source_external_url": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "notes": "<string>",
  "visibility": [
    "<string>"
  ],
  "format_obj": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "youtube_url": "<string>",
  "thumbnail": "<string>",
  "legal": true,
  "is_archived": true,
  "likes": 123,
  "pageviews": 123,
  "version": 123,
  "source_provider": "<string>",
  "source_external_id": "<string>",
  "source_external_version": "<string>",
  "source_external_url": "<string>",
  "source_imported_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.flexslot.gg/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Signature
string
header
required

HMAC-SHA256 over canonical request string. Format: v1.<unix_seconds>.<hex_hmac_sha256>.

X-Partner-Id
string
header
required

Partner identifier slug. Required alongside X-Signature for HMAC auth.

Authorization
string
header
required

User-issued personal access token (format: flx_pat_).

Path Parameters

game
string
required
id
string<uuid>
required

Body

name
string
Required string length: 1 - 255
notes
string | null
Maximum string length: 50000
visibility
string[]
Minimum string length: 1
format_obj
string<uuid> | null
youtube_url
string<uri>
Maximum string length: 500
thumbnail
string
Maximum string length: 255
is_archived
boolean
source_provider
enum<string>
  • piltover - Piltover
  • moxfield - Moxfield
  • archidekt - Archidekt
  • cube_cobra - Cube Cobra
  • mtggoldfish - MTGGoldfish
  • tappedout - TappedOut
  • deckstats - Deckstats
  • edhrec - EDHREC
  • mtg_arena - MTG Arena
  • mtgo - MTGO
  • forge - Forge
  • carde_io - Carde.io
  • manual - Manual
Available options:
piltover,
moxfield,
archidekt,
cube_cobra,
mtggoldfish,
tappedout,
deckstats,
edhrec,
mtg_arena,
mtgo,
forge,
carde_io,
manual
source_external_id
string
Maximum string length: 128
source_external_version
string
Maximum string length: 32
source_external_url
string<uri>

Response

id
string<uuid>
required
read-only
name
string | null
required
read-only
notes
string | null
required
read-only
visibility
string[]
required
read-only
format_obj
string<uuid> | null
required
read-only
youtube_url
string<uri> | null
required
read-only
thumbnail
string | null
required
read-only
is_archived
boolean
required
read-only
likes
integer
required
read-only
pageviews
integer
required
read-only
version
integer
required
read-only
source_provider
string
required
read-only
source_external_id
string
required
read-only
source_external_version
string
required
read-only
source_external_url
string
required
read-only
source_imported_at
string<date-time> | null
required
read-only
created_at
string<date-time>
required
read-only
updated_at
string<date-time>
required
read-only