Create a sideboard guide
curl --request POST \
--url https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Partner-Id: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"name": "<string>",
"deck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"notes": "<string>",
"visibility": [
"<string>"
],
"tags": [
"<string>"
],
"format": "<string>",
"thumbnail": "<string>",
"youtube_url": "<string>",
"premium": true,
"is_archived": true,
"matchups": [
{
"opponent_deck_name": "<string>",
"opponent_archetype": "<string>",
"notes": "<string>",
"play_notes": "<string>",
"draw_notes": "<string>",
"sort_order": 123,
"thumbnail": "<string>",
"is_featured": true
}
],
"attached_deck_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides"
payload = {
"name": "<string>",
"deck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"notes": "<string>",
"visibility": ["<string>"],
"tags": ["<string>"],
"format": "<string>",
"thumbnail": "<string>",
"youtube_url": "<string>",
"premium": True,
"is_archived": True,
"matchups": [
{
"opponent_deck_name": "<string>",
"opponent_archetype": "<string>",
"notes": "<string>",
"play_notes": "<string>",
"draw_notes": "<string>",
"sort_order": 123,
"thumbnail": "<string>",
"is_featured": True
}
],
"attached_deck_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"X-Signature": "<api-key>",
"X-Partner-Id": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Signature': '<api-key>',
'X-Partner-Id': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
deck_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
notes: '<string>',
visibility: ['<string>'],
tags: ['<string>'],
format: '<string>',
thumbnail: '<string>',
youtube_url: '<string>',
premium: true,
is_archived: true,
matchups: [
{
opponent_deck_name: '<string>',
opponent_archetype: '<string>',
notes: '<string>',
play_notes: '<string>',
draw_notes: '<string>',
sort_order: 123,
thumbnail: '<string>',
is_featured: true
}
],
attached_deck_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'deck_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'notes' => '<string>',
'visibility' => [
'<string>'
],
'tags' => [
'<string>'
],
'format' => '<string>',
'thumbnail' => '<string>',
'youtube_url' => '<string>',
'premium' => true,
'is_archived' => true,
'matchups' => [
[
'opponent_deck_name' => '<string>',
'opponent_archetype' => '<string>',
'notes' => '<string>',
'play_notes' => '<string>',
'draw_notes' => '<string>',
'sort_order' => 123,
'thumbnail' => '<string>',
'is_featured' => true
]
],
'attached_deck_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Partner-Id: <api-key>",
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"deck_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"visibility\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"format\": \"<string>\",\n \"thumbnail\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"premium\": true,\n \"is_archived\": true,\n \"matchups\": [\n {\n \"opponent_deck_name\": \"<string>\",\n \"opponent_archetype\": \"<string>\",\n \"notes\": \"<string>\",\n \"play_notes\": \"<string>\",\n \"draw_notes\": \"<string>\",\n \"sort_order\": 123,\n \"thumbnail\": \"<string>\",\n \"is_featured\": true\n }\n ],\n \"attached_deck_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("X-Partner-Id", "<api-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides")
.header("X-Signature", "<api-key>")
.header("X-Partner-Id", "<api-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"deck_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"visibility\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"format\": \"<string>\",\n \"thumbnail\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"premium\": true,\n \"is_archived\": true,\n \"matchups\": [\n {\n \"opponent_deck_name\": \"<string>\",\n \"opponent_archetype\": \"<string>\",\n \"notes\": \"<string>\",\n \"play_notes\": \"<string>\",\n \"draw_notes\": \"<string>\",\n \"sort_order\": 123,\n \"thumbnail\": \"<string>\",\n \"is_featured\": true\n }\n ],\n \"attached_deck_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Signature"] = '<api-key>'
request["X-Partner-Id"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"deck_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"visibility\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"format\": \"<string>\",\n \"thumbnail\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"premium\": true,\n \"is_archived\": true,\n \"matchups\": [\n {\n \"opponent_deck_name\": \"<string>\",\n \"opponent_archetype\": \"<string>\",\n \"notes\": \"<string>\",\n \"play_notes\": \"<string>\",\n \"draw_notes\": \"<string>\",\n \"sort_order\": 123,\n \"thumbnail\": \"<string>\",\n \"is_featured\": true\n }\n ],\n \"attached_deck_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"author": {},
"game": "<string>",
"visibility": [
"<string>"
],
"deck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"format": "<string>",
"views": 123,
"likes": 123,
"hasMatchups": true,
"thumbnail": "<string>",
"editedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"sourceProvider": "<string>",
"description": "<string>",
"notes": "<string>",
"youtube_url": "<string>",
"premium": true,
"is_archived": true,
"tags": [
"<string>"
],
"matchups": [
{}
],
"decks": [
{}
],
"attached_deck_ids": [
"<string>"
]
}Sideboard Guides
Create a sideboard guide
Creates a sideboard guide for the authenticated user. The caller must own the deck referenced by deck_id; otherwise the request is rejected with 403 FLEXSLOT_NOT_DECK_OWNER. Nested matchups and attached_deck_ids arrays are optional. The primary deck attachment is auto-created by the post_save signal.
POST
/
api
/
public
/
v1
/
games
/
{game}
/
sideboard-guides
Create a sideboard guide
curl --request POST \
--url https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Partner-Id: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"name": "<string>",
"deck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"notes": "<string>",
"visibility": [
"<string>"
],
"tags": [
"<string>"
],
"format": "<string>",
"thumbnail": "<string>",
"youtube_url": "<string>",
"premium": true,
"is_archived": true,
"matchups": [
{
"opponent_deck_name": "<string>",
"opponent_archetype": "<string>",
"notes": "<string>",
"play_notes": "<string>",
"draw_notes": "<string>",
"sort_order": 123,
"thumbnail": "<string>",
"is_featured": true
}
],
"attached_deck_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides"
payload = {
"name": "<string>",
"deck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"notes": "<string>",
"visibility": ["<string>"],
"tags": ["<string>"],
"format": "<string>",
"thumbnail": "<string>",
"youtube_url": "<string>",
"premium": True,
"is_archived": True,
"matchups": [
{
"opponent_deck_name": "<string>",
"opponent_archetype": "<string>",
"notes": "<string>",
"play_notes": "<string>",
"draw_notes": "<string>",
"sort_order": 123,
"thumbnail": "<string>",
"is_featured": True
}
],
"attached_deck_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"X-Signature": "<api-key>",
"X-Partner-Id": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Signature': '<api-key>',
'X-Partner-Id': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
deck_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
notes: '<string>',
visibility: ['<string>'],
tags: ['<string>'],
format: '<string>',
thumbnail: '<string>',
youtube_url: '<string>',
premium: true,
is_archived: true,
matchups: [
{
opponent_deck_name: '<string>',
opponent_archetype: '<string>',
notes: '<string>',
play_notes: '<string>',
draw_notes: '<string>',
sort_order: 123,
thumbnail: '<string>',
is_featured: true
}
],
attached_deck_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'deck_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'notes' => '<string>',
'visibility' => [
'<string>'
],
'tags' => [
'<string>'
],
'format' => '<string>',
'thumbnail' => '<string>',
'youtube_url' => '<string>',
'premium' => true,
'is_archived' => true,
'matchups' => [
[
'opponent_deck_name' => '<string>',
'opponent_archetype' => '<string>',
'notes' => '<string>',
'play_notes' => '<string>',
'draw_notes' => '<string>',
'sort_order' => 123,
'thumbnail' => '<string>',
'is_featured' => true
]
],
'attached_deck_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Partner-Id: <api-key>",
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"deck_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"visibility\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"format\": \"<string>\",\n \"thumbnail\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"premium\": true,\n \"is_archived\": true,\n \"matchups\": [\n {\n \"opponent_deck_name\": \"<string>\",\n \"opponent_archetype\": \"<string>\",\n \"notes\": \"<string>\",\n \"play_notes\": \"<string>\",\n \"draw_notes\": \"<string>\",\n \"sort_order\": 123,\n \"thumbnail\": \"<string>\",\n \"is_featured\": true\n }\n ],\n \"attached_deck_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("X-Partner-Id", "<api-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides")
.header("X-Signature", "<api-key>")
.header("X-Partner-Id", "<api-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"deck_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"visibility\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"format\": \"<string>\",\n \"thumbnail\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"premium\": true,\n \"is_archived\": true,\n \"matchups\": [\n {\n \"opponent_deck_name\": \"<string>\",\n \"opponent_archetype\": \"<string>\",\n \"notes\": \"<string>\",\n \"play_notes\": \"<string>\",\n \"draw_notes\": \"<string>\",\n \"sort_order\": 123,\n \"thumbnail\": \"<string>\",\n \"is_featured\": true\n }\n ],\n \"attached_deck_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flexslot.gg/api/public/v1/games/{game}/sideboard-guides")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Signature"] = '<api-key>'
request["X-Partner-Id"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"deck_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"visibility\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"format\": \"<string>\",\n \"thumbnail\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"premium\": true,\n \"is_archived\": true,\n \"matchups\": [\n {\n \"opponent_deck_name\": \"<string>\",\n \"opponent_archetype\": \"<string>\",\n \"notes\": \"<string>\",\n \"play_notes\": \"<string>\",\n \"draw_notes\": \"<string>\",\n \"sort_order\": 123,\n \"thumbnail\": \"<string>\",\n \"is_featured\": true\n }\n ],\n \"attached_deck_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"author": {},
"game": "<string>",
"visibility": [
"<string>"
],
"deck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"format": "<string>",
"views": 123,
"likes": 123,
"hasMatchups": true,
"thumbnail": "<string>",
"editedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"sourceProvider": "<string>",
"description": "<string>",
"notes": "<string>",
"youtube_url": "<string>",
"premium": true,
"is_archived": true,
"tags": [
"<string>"
],
"matchups": [
{}
],
"decks": [
{}
],
"attached_deck_ids": [
"<string>"
]
}Authorizations
PartnerHmac & PartnerSlug & PersonalAccessTokenPartnerHmac & PartnerSlugApiKeyPersonalAccessTokenOAuth2DPoP & OAuth2DPoPProofOAuth2Bearer
HMAC-SHA256 over canonical request string. Format: v1.<unix_seconds>.<hex_hmac_sha256>.
Partner identifier slug. Required alongside X-Signature for HMAC auth.
User-issued personal access token (format: flx_pat_).
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Required string length:
1 - 255Maximum string length:
500000Minimum string length:
1Required string length:
1 - 50Maximum string length:
50Maximum string length:
255Maximum string length:
500Show child attributes
Show child attributes
Response
Was this page helpful?
⌘I