# App Version


## List

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

Use this end point to get the list of app versions

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/app-version?search=ios" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json

{
      "message": "App version list",
      "data": {
         "appVersions": {
              "current_page": 1,
                  "data": [
                      {
                          "id": 4,
                          "platform": "ios",
                          "version": "19.2",
                          "date": "2025-01-28 06:59:14",
                          "is_force_update": 1,
                          "created_at": "2025-01-28T11:59:14.000000Z",
                          "updated_at": "2025-01-28T11:59:14.000000Z"
                          "release_notes": [
                                             {
                                                 "title": "🚀 Featured Contests",
                                                   "description": "View and easily enter the top contests that are available on   FantasySpin"
                                                 },
                                              {
                                                 "title": "🚀 Referral Tier Bonuses",
                                                  "description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
                                                 }
                                              ]
                      },
                      {
                          "id": 3,
                          "platform": "android",
                          "version": "74.0",
                          "date": "2025-01-28 06:59:14",
                          "is_force_update": 1,
                          "created_at": "2025-01-28T11:59:14.000000Z",
                          "updated_at": "2025-01-28T11:59:14.000000Z"
                           "release_notes": [
                                             {
                                                 "title": "🚀 Featured Contests",
                                                   "description": "View and easily enter the top contests that are available on   FantasySpin"
                                                 },
                                              {
                                                 "title": "🚀 Referral Tier Bonuses",
                                                  "description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
                                                 }
                                              ]
                      },
                      },
                  ],
                  "first_page_url": "http://127.0.0.1:8000/app-version?page=1",
                  "from": 1,
                  "last_page": 1,
                  "last_page_url": "http://127.0.0.1:8000/app-version?page=1",
                  "links": [
                      {
                          "url": null,
                          "label": "pagination.previous",
                          "active": false
                      },
                      {
                          "url": "http://127.0.0.1:8000/app-version?page=1",
                          "label": "1",
                          "active": true
                      },
                      {
                          "url": null,
                          "label": "pagination.next",
                          "active": false
                      }
                  ],
                  "next_page_url": null,
                  "path": "http://127.0.0.1:8000/app-version",
                  "per_page": 10,
                  "prev_page_url": null,
                  "to": 4,
                  "total": 4
              }
          }
  }
```
<div id="execution-results-GETapp-version" hidden>
    <blockquote>Received response<span id="execution-response-status-GETapp-version"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETapp-version"></code></pre>
</div>
<div id="execution-error-GETapp-version" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETapp-version"></code></pre>
</div>
<form id="form-GETapp-version" data-method="GET" data-path="app-version" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETapp-version', 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-GETapp-version" onclick="tryItOut('GETapp-version');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapp-version" onclick="cancelTryOut('GETapp-version');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapp-version" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>app-version</code></b>
</p>
<p>
<label id="auth-GETapp-version" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETapp-version" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Query Parameters</b></h4>
<p>
<b><code>search</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="search" data-endpoint="GETapp-version" data-component="query"  hidden>
<br>
Search string. Search will be performed in platform.
</p>
</form>


## Store

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

Use this end point to store app version

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/app-version/store" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"platform":"ios.","version":"19.0","date":"Y-m-d H:i:s","is_force_update":true}'

```


> Example response (200):

```json
{
    "message": "App version created successfully"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "platform": [
            "The platform field is required."
        ],
        "version": [
            "The version field is required."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden"
}
```
<div id="execution-results-POSTapp-version-store" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTapp-version-store"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTapp-version-store"></code></pre>
</div>
<div id="execution-error-POSTapp-version-store" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTapp-version-store"></code></pre>
</div>
<form id="form-POSTapp-version-store" data-method="POST" data-path="app-version/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('POSTapp-version-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-POSTapp-version-store" onclick="tryItOut('POSTapp-version-store');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTapp-version-store" onclick="cancelTryOut('POSTapp-version-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-POSTapp-version-store" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>app-version/store</code></b>
</p>
<p>
<label id="auth-POSTapp-version-store" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTapp-version-store" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>platform</code></b>&nbsp;&nbsp;<small>enum</small>  &nbsp;
<input type="text" name="platform" data-endpoint="POSTapp-version-store" data-component="body" required  hidden>
<br>
Possible values: ios, android.
</p>
<p>
<b><code>version</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="version" data-endpoint="POSTapp-version-store" data-component="body" required  hidden>
<br>
version.
</p>
<p>
<b><code>date</code></b>&nbsp;&nbsp;<small>datetime</small>     <i>optional</i> &nbsp;
<input type="text" name="date" data-endpoint="POSTapp-version-store" data-component="body"  hidden>
<br>
nullable date of app version.
</p>
<p>
<b><code>is_force_update</code></b>&nbsp;&nbsp;<small>boolean</small>     <i>optional</i> &nbsp;
<label data-endpoint="POSTapp-version-store" hidden><input type="radio" name="is_force_update" value="true" data-endpoint="POSTapp-version-store" data-component="body" ><code>true</code></label>
<label data-endpoint="POSTapp-version-store" hidden><input type="radio" name="is_force_update" value="false" data-endpoint="POSTapp-version-store" data-component="body" ><code>false</code></label>
<br>
Possible values: 0 (No), 1 (Yes).
</p>

</form>


## View

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

Use this end point to view a App Version

> Example request:

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


> Example response (200):

```json

{
      "message": "App Version",
      "data": {
                 {
                    "id": 4,
                     "platform": "ios",
                     "version": "19.2",
                      "date": "2025-01-28 06:59:14",
                      "is_force_update": 1,
                      "created_at": "2025-01-28T11:59:14.000000Z",
                      "updated_at": "2025-01-28T11:59:14.000000Z",
                        "release_notes": [
                                             {
                                                 "title": "🚀 Featured Contests",
                                                   "description": "View and easily enter the top contests that are available on   FantasySpin"
                                                 },
                                              {
                                                 "title": "🚀 Referral Tier Bonuses",
                                                  "description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
                                                 }
                                              ]
                      },
```
> Example response (404):

```json
{
    "message": "App version not found!"
}
```
<div id="execution-results-GETapp-version-data--id-" hidden>
    <blockquote>Received response<span id="execution-response-status-GETapp-version-data--id-"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETapp-version-data--id-"></code></pre>
</div>
<div id="execution-error-GETapp-version-data--id-" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETapp-version-data--id-"></code></pre>
</div>
<form id="form-GETapp-version-data--id-" data-method="GET" data-path="app-version/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('GETapp-version-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-GETapp-version-data--id-" onclick="tryItOut('GETapp-version-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-GETapp-version-data--id-" onclick="cancelTryOut('GETapp-version-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-GETapp-version-data--id-" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>app-version/data/{id}</code></b>
</p>
<p>
<label id="auth-GETapp-version-data--id-" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETapp-version-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="GETapp-version-data--id-" data-component="url" required  hidden>
<br>
App Version Id.
</p>
</form>


## Update

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

Use this end point to update app version

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/app-version/mollitia/update" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"platform":"ios.","version":"19.0","date":"Y-m-d H:i:s","is_force_update":true,"status":1}'

```


> Example response (200):

```json
{
    "message": "App version updated successfully"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "platform": [
            "The platform field is required."
        ],
        "version": [
            "The version field is required."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden"
}
```
<div id="execution-results-POSTapp-version--id--update" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTapp-version--id--update"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTapp-version--id--update"></code></pre>
</div>
<div id="execution-error-POSTapp-version--id--update" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTapp-version--id--update"></code></pre>
</div>
<form id="form-POSTapp-version--id--update" data-method="POST" data-path="app-version/{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('POSTapp-version--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-POSTapp-version--id--update" onclick="tryItOut('POSTapp-version--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-POSTapp-version--id--update" onclick="cancelTryOut('POSTapp-version--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-POSTapp-version--id--update" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>app-version/{id}/update</code></b>
</p>
<p>
<label id="auth-POSTapp-version--id--update" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTapp-version--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="POSTapp-version--id--update" data-component="url" required  hidden>
<br>

</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>platform</code></b>&nbsp;&nbsp;<small>enum</small>  &nbsp;
<input type="text" name="platform" data-endpoint="POSTapp-version--id--update" data-component="body" required  hidden>
<br>
Possible values: ios, android.
</p>
<p>
<b><code>version</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="version" data-endpoint="POSTapp-version--id--update" data-component="body" required  hidden>
<br>
version.
</p>
<p>
<b><code>date</code></b>&nbsp;&nbsp;<small>datetime</small>     <i>optional</i> &nbsp;
<input type="text" name="date" data-endpoint="POSTapp-version--id--update" data-component="body"  hidden>
<br>
nullable date of app version.
</p>
<p>
<b><code>is_force_update</code></b>&nbsp;&nbsp;<small>boolean</small>     <i>optional</i> &nbsp;
<label data-endpoint="POSTapp-version--id--update" hidden><input type="radio" name="is_force_update" value="true" data-endpoint="POSTapp-version--id--update" data-component="body" ><code>true</code></label>
<label data-endpoint="POSTapp-version--id--update" hidden><input type="radio" name="is_force_update" value="false" data-endpoint="POSTapp-version--id--update" data-component="body" ><code>false</code></label>
<br>
Possible values: 0 (No), 1 (Yes).
</p>
<p>
<b><code>status</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="status" data-endpoint="POSTapp-version--id--update" data-component="body"  hidden>
<br>
Possible values: 0 (Inactive), 1 (Active).
</p>

</form>


## Delete

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

Use this end point to delete a app version

> Example request:

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


> Example response (200):

```json

{
      "message": "App version deleted successfully!",
      }
  }
```
> Example response (404):

```json
{
    "message": "App version not found!"
}
```
<div id="execution-results-POSTapp-version-delete" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTapp-version-delete"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTapp-version-delete"></code></pre>
</div>
<div id="execution-error-POSTapp-version-delete" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTapp-version-delete"></code></pre>
</div>
<form id="form-POSTapp-version-delete" data-method="POST" data-path="app-version/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('POSTapp-version-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-POSTapp-version-delete" onclick="tryItOut('POSTapp-version-delete');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTapp-version-delete" onclick="cancelTryOut('POSTapp-version-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-POSTapp-version-delete" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>app-version/delete</code></b>
</p>
<p>
<label id="auth-POSTapp-version-delete" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTapp-version-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="POSTapp-version-delete" data-component="url" required  hidden>
<br>
app version Id.
</p>
</form>


## Latest Version

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

Use this end point to view a Latest App Version

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/app-version/get-latest-version-data/soluta" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"platform":"ios"}'

```


> Example response (200):

```json

{
      "message": "Latest App Version",
      "data": {
             "latestVersion": {
                    "id": 4,
                     "platform": "ios",
                     "version": "19.2",
                      "is_force_update": 1,
                        "release_notes": [
                                             {
                                                 "title": "🚀 Featured Contests",
                                                   "description": "View and easily enter the top contests that are available on   FantasySpin"
                                                 },
                                              {
                                                 "title": "🚀 Referral Tier Bonuses",
                                                  "description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
                                                 }
                                              ]
                      },
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "platform": [
            "The platform field is required."
        ]
    }
}
```
<div id="execution-results-GETapp-version-get-latest-version-data--platform-" hidden>
    <blockquote>Received response<span id="execution-response-status-GETapp-version-get-latest-version-data--platform-"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETapp-version-get-latest-version-data--platform-"></code></pre>
</div>
<div id="execution-error-GETapp-version-get-latest-version-data--platform-" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETapp-version-get-latest-version-data--platform-"></code></pre>
</div>
<form id="form-GETapp-version-get-latest-version-data--platform-" data-method="GET" data-path="app-version/get-latest-version-data/{platform}" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETapp-version-get-latest-version-data--platform-', 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-GETapp-version-get-latest-version-data--platform-" onclick="tryItOut('GETapp-version-get-latest-version-data--platform-');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapp-version-get-latest-version-data--platform-" onclick="cancelTryOut('GETapp-version-get-latest-version-data--platform-');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapp-version-get-latest-version-data--platform-" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>app-version/get-latest-version-data/{platform}</code></b>
</p>
<p>
<label id="auth-GETapp-version-get-latest-version-data--platform-" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETapp-version-get-latest-version-data--platform-" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>platform</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="platform" data-endpoint="GETapp-version-get-latest-version-data--platform-" data-component="url" required  hidden>
<br>

</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>platform</code></b>&nbsp;&nbsp;<small>enum(&#039;ios&#039;,</small>     <i>optional</i> &nbsp;
<input type="text" name="platform" data-endpoint="GETapp-version-get-latest-version-data--platform-" data-component="body"  hidden>
<br>
'android') required App Version platform.
</p>

</form>



