# Fantasy Spin Master


## Store

<small class="badge badge-darkred">requires authentication</small>

Use this end point to store fantasy spin master

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/store" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"game_id":1,"name":"Pittsburgh Steelers vs New England Patriots","slate":"Pittsburgh Steelers vs New England Patriots","currency_type":30,"buy_in":2,"payout":5,"number_of_entrants":100,"number_of_entries_per_user":10,"is_active":1,"is_instant_win":1,"is_regenerate":1,"is_beginner_contest":1}'

```


> Example response (200):

```json
{
    "message": "Fantasy spin master created successfully"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "game_id": [
            "The game id field is required."
        ],
        "name": [
            "The name field is required."
        ],
        "slate": [
            "The slate field is required."
        ],
        "currency_type": [
            "The currency type field is required."
        ],
        "buy_in": [
            "The buy in field is required."
        ],
        "payout": [
            "The payout field is required."
        ],
        "number_of_entrants": [
            "The number of entrants field is required."
        ],
        "number_of_entries_per_user": [
            "The number of entries per user field is required."
        ],
        "is_active": [
            "The active\/inactive field is required"
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden"
}
```
<div id="execution-results-POSTfantasy-spin-master-blueprints-store" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTfantasy-spin-master-blueprints-store"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTfantasy-spin-master-blueprints-store"></code></pre>
</div>
<div id="execution-error-POSTfantasy-spin-master-blueprints-store" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTfantasy-spin-master-blueprints-store"></code></pre>
</div>
<form id="form-POSTfantasy-spin-master-blueprints-store" data-method="POST" data-path="fantasy-spin-master-blueprints/store" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTfantasy-spin-master-blueprints-store', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTfantasy-spin-master-blueprints-store" onclick="tryItOut('POSTfantasy-spin-master-blueprints-store');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTfantasy-spin-master-blueprints-store" onclick="cancelTryOut('POSTfantasy-spin-master-blueprints-store');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTfantasy-spin-master-blueprints-store" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>fantasy-spin-master-blueprints/store</code></b>
</p>
<p>
<label id="auth-POSTfantasy-spin-master-blueprints-store" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>game_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="game_id" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Game ID: 1 (NFL), 2 (NBA), 3 (MLB), 4 (NHL).
</p>
<p>
<b><code>name</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="name" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Name of the fantasy spin.
</p>
<p>
<b><code>slate</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="slate" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Name of the fantasy spin.
</p>
<p>
<b><code>currency_type</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="currency_type" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Currency type, 20 (coins), 30 (Cash).
</p>
<p>
<b><code>buy_in</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="buy_in" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Buy-in.
</p>
<p>
<b><code>payout</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="payout" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Payout.
</p>
<p>
<b><code>number_of_entrants</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="number_of_entrants" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Number of entrants.
</p>
<p>
<b><code>number_of_entries_per_user</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="number_of_entries_per_user" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body"  hidden>
<br>
Number of entries per user.
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body" required  hidden>
<br>
0 (Inactive), 1 (Active).
</p>
<p>
<b><code>is_instant_win</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_instant_win" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body" required  hidden>
<br>
0 (No), 1 (Yes).
</p>
<p>
<b><code>is_regenerate</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_regenerate" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body" required  hidden>
<br>
0 (No), 1 (Yes), 2(Regenerate X Times).
</p>
<p>
<b><code>is_beginner_contest</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_beginner_contest" data-endpoint="POSTfantasy-spin-master-blueprints-store" data-component="body" required  hidden>
<br>
0 (No), 1 (Yes).
</p>

</form>


## List

<small class="badge badge-darkred">requires authentication</small>

Use this end point to get the list of Fantasy spin master blueprint's

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints?per_page=15&search=NFL+Spin&sort_field=id&sort_method=desc&page=2&is_active=1&game_id=1" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Fantasy Spin Master Blueprints List",
    "data": {
        "fantasy_spin_blueprints": {
            "current_page": 1,
            "data": [
                {
                    "id": 32,
                    "name": "Pittsburgh Steelers vs New England Patriots",
                    "slate": "Pittsburgh Steelers vs New England Patriots",
                    "currency_type": 20,
                    "game_id": 1,
                    "buy_in": 25,
                    "payout": 100,
                    "number_of_entrants": 100,
                    "number_of_entries_per_user": 10,
                    "is_instant_win": 1,
                    "instant_wins_per_position": 1,
                    "is_active": 1,
                    "created_at": "2023-12-07T13:15:23.000000Z",
                    "updated_at": "2023-12-07T13:15:23.000000Z",
                    "created_by": 1,
                    "updated_by": 0,
                    "game": {
                        "id": 1,
                        "name": "NFL"
                    }
                }
            ],
            "first_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
            "from": 1,
            "last_page": 2,
            "last_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
            "links": [
                {
                    "url": null,
                    "label": "pagination.previous",
                    "active": false
                },
                {
                    "url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
                    "label": "pagination.next",
                    "active": false
                }
            ],
            "next_page_url": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&game_id=&page=2",
            "path": "http:\/\/127.0.0.1:8000\/fantasy-spin-master-blueprints",
            "per_page": 10,
            "prev_page_url": null,
            "to": 10,
            "total": 17
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "per_page": [
            "The per page must be a number."
        ],
        "sort_field": [
            "The selected sort field is invalid."
        ],
        "sort_method": [
            "The selected sort method is invalid."
        ],
        "is_active": [
            "The selected is active is invalid."
        ]
    }
}
```
<div id="execution-results-GETfantasy-spin-master-blueprints" hidden>
    <blockquote>Received response<span id="execution-response-status-GETfantasy-spin-master-blueprints"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETfantasy-spin-master-blueprints"></code></pre>
</div>
<div id="execution-error-GETfantasy-spin-master-blueprints" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETfantasy-spin-master-blueprints"></code></pre>
</div>
<form id="form-GETfantasy-spin-master-blueprints" data-method="GET" data-path="fantasy-spin-master-blueprints" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETfantasy-spin-master-blueprints', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETfantasy-spin-master-blueprints" onclick="tryItOut('GETfantasy-spin-master-blueprints');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETfantasy-spin-master-blueprints" onclick="cancelTryOut('GETfantasy-spin-master-blueprints');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETfantasy-spin-master-blueprints" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>fantasy-spin-master-blueprints</code></b>
</p>
<p>
<label id="auth-GETfantasy-spin-master-blueprints" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETfantasy-spin-master-blueprints" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Query Parameters</b></h4>
<p>
<b><code>per_page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="per_page" data-endpoint="GETfantasy-spin-master-blueprints" data-component="query"  hidden>
<br>
Number of records per page. Send '-1' for all records. Default: 10.
</p>
<p>
<b><code>search</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="search" data-endpoint="GETfantasy-spin-master-blueprints" data-component="query"  hidden>
<br>
Search string. Search will be performed in name.
</p>
<p>
<b><code>sort_field</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_field" data-endpoint="GETfantasy-spin-master-blueprints" data-component="query"  hidden>
<br>
Sort by field.
</p>
<p>
<b><code>sort_method</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_method" data-endpoint="GETfantasy-spin-master-blueprints" data-component="query"  hidden>
<br>
Sort by method. Possible values: asc, desc.
</p>
<p>
<b><code>page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="page" data-endpoint="GETfantasy-spin-master-blueprints" data-component="query"  hidden>
<br>
Page number.
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_active" data-endpoint="GETfantasy-spin-master-blueprints" data-component="query"  hidden>
<br>
Possible values: 0 (Inactive), 1 (Active).
</p>
<p>
<b><code>game_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="game_id" data-endpoint="GETfantasy-spin-master-blueprints" data-component="query"  hidden>
<br>
Game ID.
</p>
</form>


## Update

<small class="badge badge-darkred">requires authentication</small>

Use this end point to update fantasy spin master

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/ut/update" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"game_id":1,"name":"Pittsburgh Steelers vs New England Patriots","slate":"Pittsburgh Steelers vs New England Patriots","currency_type":30,"buy_in":2,"payout":5,"number_of_entrants":100,"number_of_entries_per_user":10,"is_active":1,"is_instant_win":1,"is_regenerate":1,"is_beginner_contest":1}'

```


> Example response (200):

```json
{
    "message": "Fantasy spin master updated successfully"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "game_id": [
            "The game id field is required."
        ],
        "name": [
            "The name field is required."
        ],
        "slate": [
            "The slate field is required."
        ],
        "currency_type": [
            "The currency type field is required."
        ],
        "buy_in": [
            "The buy in field is required."
        ],
        "payout": [
            "The payout field is required."
        ],
        "number_of_entrants": [
            "The number of entrants field is required."
        ],
        "number_of_entries_per_user": [
            "The number of entries per user field is required."
        ],
        "is_active": [
            "The active\/inactive field is required"
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden"
}
```
<div id="execution-results-POSTfantasy-spin-master-blueprints--id--update" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTfantasy-spin-master-blueprints--id--update"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTfantasy-spin-master-blueprints--id--update"></code></pre>
</div>
<div id="execution-error-POSTfantasy-spin-master-blueprints--id--update" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTfantasy-spin-master-blueprints--id--update"></code></pre>
</div>
<form id="form-POSTfantasy-spin-master-blueprints--id--update" data-method="POST" data-path="fantasy-spin-master-blueprints/{id}/update" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTfantasy-spin-master-blueprints--id--update', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTfantasy-spin-master-blueprints--id--update" onclick="tryItOut('POSTfantasy-spin-master-blueprints--id--update');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTfantasy-spin-master-blueprints--id--update" onclick="cancelTryOut('POSTfantasy-spin-master-blueprints--id--update');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTfantasy-spin-master-blueprints--id--update" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>fantasy-spin-master-blueprints/{id}/update</code></b>
</p>
<p>
<label id="auth-POSTfantasy-spin-master-blueprints--id--update" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="id" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="url" required  hidden>
<br>

</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>game_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="game_id" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Game ID: 1 (NFL), 2 (NBA), 3 (MLB), 4 (NHL).
</p>
<p>
<b><code>name</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="name" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Name of the fantasy spin.
</p>
<p>
<b><code>slate</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="slate" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Name of the fantasy spin.
</p>
<p>
<b><code>currency_type</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="currency_type" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Currency type, 20 (coins), 30 (Cash).
</p>
<p>
<b><code>buy_in</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="buy_in" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Buy-in.
</p>
<p>
<b><code>payout</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="payout" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Payout.
</p>
<p>
<b><code>number_of_entrants</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="number_of_entrants" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Number of entrants.
</p>
<p>
<b><code>number_of_entries_per_user</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="number_of_entries_per_user" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body"  hidden>
<br>
Number of entries per user.
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body" required  hidden>
<br>
0 (Inactive), 1 (Active).
</p>
<p>
<b><code>is_instant_win</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_instant_win" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body" required  hidden>
<br>
0 (No), 1 (Yes).
</p>
<p>
<b><code>is_regenerate</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_regenerate" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body" required  hidden>
<br>
0 (No), 1 (Yes), 2 (Regenerate X Times).
</p>
<p>
<b><code>is_beginner_contest</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_beginner_contest" data-endpoint="POSTfantasy-spin-master-blueprints--id--update" data-component="body" required  hidden>
<br>
0 (No), 1 (Yes).
</p>

</form>


## Delete

<small class="badge badge-darkred">requires authentication</small>

Use this end point to delete a fantasy spin master

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/delete" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json

{
      "message": "Fantasy spin master deleted successfully!",
      }
  }
```
> Example response (404):

```json
{
    "message": "Fantasy spin Master not found!"
}
```
<div id="execution-results-POSTfantasy-spin-master-blueprints-delete" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTfantasy-spin-master-blueprints-delete"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTfantasy-spin-master-blueprints-delete"></code></pre>
</div>
<div id="execution-error-POSTfantasy-spin-master-blueprints-delete" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTfantasy-spin-master-blueprints-delete"></code></pre>
</div>
<form id="form-POSTfantasy-spin-master-blueprints-delete" data-method="POST" data-path="fantasy-spin-master-blueprints/delete" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTfantasy-spin-master-blueprints-delete', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTfantasy-spin-master-blueprints-delete" onclick="tryItOut('POSTfantasy-spin-master-blueprints-delete');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTfantasy-spin-master-blueprints-delete" onclick="cancelTryOut('POSTfantasy-spin-master-blueprints-delete');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTfantasy-spin-master-blueprints-delete" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>fantasy-spin-master-blueprints/delete</code></b>
</p>
<p>
<label id="auth-POSTfantasy-spin-master-blueprints-delete" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTfantasy-spin-master-blueprints-delete" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="POSTfantasy-spin-master-blueprints-delete" data-component="url" required  hidden>
<br>
Fantasy Spin Master Id.
</p>
</form>


## Get Master Blueprints

<small class="badge badge-darkred">requires authentication</small>

Use this end point to get master blueprints by game_id

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/get/1" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json

{
      "message": "Fantasy Spin Master Blueprints",
      "data": {
          "fantasy_spin_master_blueprint": {
              "id": 1,
              "game_id": 1,
              "name": "Pittsburgh Steelers vs New England Patriots",
{
              "id": 2,
              "game_id": 1,
              "name": "Pittsburgh Steelers vs New England Patriots",
          },
      }
  }
```
> Example response (404):

```json
{
    "message": "Fantasy spin Master not found!"
}
```
<div id="execution-results-GETfantasy-spin-master-blueprints-get--game_id-" hidden>
    <blockquote>Received response<span id="execution-response-status-GETfantasy-spin-master-blueprints-get--game_id-"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETfantasy-spin-master-blueprints-get--game_id-"></code></pre>
</div>
<div id="execution-error-GETfantasy-spin-master-blueprints-get--game_id-" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETfantasy-spin-master-blueprints-get--game_id-"></code></pre>
</div>
<form id="form-GETfantasy-spin-master-blueprints-get--game_id-" data-method="GET" data-path="fantasy-spin-master-blueprints/get/{game_id}" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETfantasy-spin-master-blueprints-get--game_id-', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETfantasy-spin-master-blueprints-get--game_id-" onclick="tryItOut('GETfantasy-spin-master-blueprints-get--game_id-');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETfantasy-spin-master-blueprints-get--game_id-" onclick="cancelTryOut('GETfantasy-spin-master-blueprints-get--game_id-');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETfantasy-spin-master-blueprints-get--game_id-" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>fantasy-spin-master-blueprints/get/{game_id}</code></b>
</p>
<p>
<label id="auth-GETfantasy-spin-master-blueprints-get--game_id-" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETfantasy-spin-master-blueprints-get--game_id-" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>game_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="game_id" data-endpoint="GETfantasy-spin-master-blueprints-get--game_id-" data-component="url" required  hidden>
<br>
Fantasy Spin Master Game Id.
</p>
</form>


## View

<small class="badge badge-darkred">requires authentication</small>

Use this end point to view a fantasy spin master

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/fantasy-spin-master-blueprints/data/1" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json

{
      "message": "Fantasy Spin Master",
      "data": {
          "fantasy_spin_master_blueprint": {
              "id": 1,
              "game_id": 1,
              "name": "Pittsburgh Steelers vs New England Patriots",
              "slate": "Pittsburgh Steelers vs New England Patriots",
              "currency_type": 20,
              "buy_in": 25,
              "payout": 100,
              "number_of_entrants": 100,
              "number_of_entries_per_user": 10,
              "is_active": 1,
              "created_at": "2023-12-06T13:32:57.000000Z",
              "updated_at": "2023-12-06T13:32:57.000000Z",
              "created_by": 1,
              "updated_by": 0,
              "game": {
                  "id": 1,
                  "name": "NFL"
              }
          },
      }
  }
```
> Example response (404):

```json
{
    "message": "Fantasy spin Master not found!"
}
```
<div id="execution-results-GETfantasy-spin-master-blueprints-data--id-" hidden>
    <blockquote>Received response<span id="execution-response-status-GETfantasy-spin-master-blueprints-data--id-"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETfantasy-spin-master-blueprints-data--id-"></code></pre>
</div>
<div id="execution-error-GETfantasy-spin-master-blueprints-data--id-" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETfantasy-spin-master-blueprints-data--id-"></code></pre>
</div>
<form id="form-GETfantasy-spin-master-blueprints-data--id-" data-method="GET" data-path="fantasy-spin-master-blueprints/data/{id}" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETfantasy-spin-master-blueprints-data--id-', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETfantasy-spin-master-blueprints-data--id-" onclick="tryItOut('GETfantasy-spin-master-blueprints-data--id-');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETfantasy-spin-master-blueprints-data--id-" onclick="cancelTryOut('GETfantasy-spin-master-blueprints-data--id-');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETfantasy-spin-master-blueprints-data--id-" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>fantasy-spin-master-blueprints/data/{id}</code></b>
</p>
<p>
<label id="auth-GETfantasy-spin-master-blueprints-data--id-" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETfantasy-spin-master-blueprints-data--id-" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="GETfantasy-spin-master-blueprints-data--id-" data-component="url" required  hidden>
<br>
Fantasy Spin Master Id.
</p>
</form>


## FantasySpin Blueprint Rule

<small class="badge badge-darkred">requires authentication</small>

Use this end point to get data of a fantasy spin rule by game id and count

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/fantasy-spin-blueprint-rule" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json

{
      "message": "Fantasy Spin Blueprint Rule",
      "data": {
          "fantasy_spin_blueprint_rule": {
              "id": 1,
              "game_id": 1,
              "min_game_count": 1,
              "max_game_count": 4,
              "number_of_spin": 3,
              "number_of_locks": 4,
              "positions": "[{"position":"QB","title":"Quarterback","quantity":1},{"position":"FLEX","title":"Flex","quantity":6,"min_projection":1.9},{"position":"K","title":"Kicker","quantity":1}]",
              "created_at": "2023-12-06T13:32:57.000000Z",
              "updated_at": "2023-12-06T13:32:57.000000Z",
          },
      }
  }
```
> Example response (404):

```json
{
    "message": "Fantasy spin blueprint rule not found!"
}
```
<div id="execution-results-GETfantasy-spin-blueprint-rule" hidden>
    <blockquote>Received response<span id="execution-response-status-GETfantasy-spin-blueprint-rule"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETfantasy-spin-blueprint-rule"></code></pre>
</div>
<div id="execution-error-GETfantasy-spin-blueprint-rule" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETfantasy-spin-blueprint-rule"></code></pre>
</div>
<form id="form-GETfantasy-spin-blueprint-rule" data-method="GET" data-path="fantasy-spin-blueprint-rule" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETfantasy-spin-blueprint-rule', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETfantasy-spin-blueprint-rule" onclick="tryItOut('GETfantasy-spin-blueprint-rule');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETfantasy-spin-blueprint-rule" onclick="cancelTryOut('GETfantasy-spin-blueprint-rule');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETfantasy-spin-blueprint-rule" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>fantasy-spin-blueprint-rule</code></b>
</p>
<p>
<label id="auth-GETfantasy-spin-blueprint-rule" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETfantasy-spin-blueprint-rule" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="GETfantasy-spin-blueprint-rule" data-component="url" required  hidden>
<br>
Game Count Id.
</p>
</form>



