# Trivia


## List

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

Use this end point to get the list of trivias

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/trivias?per_page=8&search=sit&sort_field=nobis&sort_method=ea&page=13&is_active=11&is_used=4" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Trivia list",
    "data": {
        "trivias": {
            "current_page": 1,
            "data": [
                {
                    "id": 2,
                    "question": "What planet has rings?",
                    "options": [
                        "Earth",
                        "Jupiter",
                        "Saturn"
                    ],
                    "answer": 2,
                    "is_active": 1,
                    "is_used": 0,
                    "created_by": 2,
                    "updated_by": 2,
                    "created_at": "2021-07-16T04:51:32.000000Z",
                    "updated_at": "2021-07-16T04:51:32.000000Z",
                    "answer_value": "Saturn"
                },
                {
                    "id": 1,
                    "question": "What is name of our panet?",
                    "options": [
                        "Earth",
                        "Jupiter"
                    ],
                    "answer": 0,
                    "is_active": 1,
                    "is_used": 0,
                    "created_by": 2,
                    "updated_by": 2,
                    "created_at": "2021-07-16T04:51:03.000000Z",
                    "updated_at": "2021-07-16T04:51:03.000000Z",
                    "answer_value": "Earth"
                }
            ],
            "first_page_url": "http:\/\/127.0.0.1:8000\/trivias?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http:\/\/127.0.0.1:8000\/trivias?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
            "links": [
                {
                    "url": null,
                    "label": "pagination.previous",
                    "active": false
                },
                {
                    "url": "http:\/\/127.0.0.1:8000\/trivias?per_page=10&search=&sort_field=id&sort_method=desc&is_active=&is_used=&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "pagination.next",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http:\/\/127.0.0.1:8000\/trivias",
            "per_page": 10,
            "prev_page_url": null,
            "to": 2,
            "total": 2
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "per_page": [
            "The per page must be a number."
        ]
    }
}
```
<div id="execution-results-GETtrivias" hidden>
    <blockquote>Received response<span id="execution-response-status-GETtrivias"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETtrivias"></code></pre>
</div>
<div id="execution-error-GETtrivias" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETtrivias"></code></pre>
</div>
<form id="form-GETtrivias" data-method="GET" data-path="trivias" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETtrivias', 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-GETtrivias" onclick="tryItOut('GETtrivias');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETtrivias" onclick="cancelTryOut('GETtrivias');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETtrivias" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>trivias</code></b>
</p>
<p>
<label id="auth-GETtrivias" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETtrivias" 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="GETtrivias" data-component="query"  hidden>
<br>
Number of records per page. Send '-1' for all records. Default: 10. Ex: 15
</p>
<p>
<b><code>search</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="search" data-endpoint="GETtrivias" data-component="query"  hidden>
<br>
Search string. Search will be performed in question. Ex: ring
</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="GETtrivias" data-component="query"  hidden>
<br>
Sort by field. Possible values: id, question, is_used, created_at, is_active, live_date. Ex: is_active
</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="GETtrivias" data-component="query"  hidden>
<br>
Sort by method. Possible values: asc, desc. Ex: desc
</p>
<p>
<b><code>page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="page" data-endpoint="GETtrivias" data-component="query"  hidden>
<br>
Page number. Ex: 2
</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="GETtrivias" data-component="query"  hidden>
<br>
Possible values: 0 (Inactive), 1 (Active). Ex: 1
</p>
<p>
<b><code>is_used</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_used" data-endpoint="GETtrivias" data-component="query"  hidden>
<br>
Possible values: 0 (No), 1 (Yes). Ex: 0
</p>
</form>


## Show

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

Use this end point to view trivia.

> Example request:

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


> Example response (200):

```json
{
    "message": "Trivia details",
    "data": {
        "trivia": {
            "id": 12,
            "question": "What planet has rings?",
            "options": [
                "Mercury",
                "Venus",
                "Saturn"
            ],
            "answer": 2,
            "is_active": 0,
            "is_used": 0,
            "created_by": 2,
            "updated_by": 2,
            "created_at": "2021-07-16T04:36:20.000000Z",
            "updated_at": "2021-07-16T04:47:31.000000Z",
            "answer_value": "Saturn"
        }
    }
}
```
> Example response (404):

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


## Create

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

Use this end point to create trivias.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/trivias/store" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"question":"porro","options":["et","vel"],"answer":1,"is_active":12}'

```


> Example response (201):

```json
{
    "message": "Trivia created successfully",
    "data": {
        "trivia": {
            "id": 12,
            "question": "What is name of our panet?",
            "options": [
                "Earth",
                "Jupiter"
            ],
            "answer": 0,
            "is_active": 1,
            "is_used": 0,
            "created_by": 2,
            "updated_by": 2,
            "created_at": "2021-07-16T04:36:20.000000Z",
            "updated_at": "2021-07-16T04:36:20.000000Z",
            "answer_value": "Earth"
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "question": [
            "The question field is required."
        ],
        "options": [
            "The options field is required."
        ],
        "answer": [
            "The answer field is required."
        ],
        "is_active": [
            "The active\/inactive field is required"
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTtrivias-store" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTtrivias-store"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTtrivias-store"></code></pre>
</div>
<div id="execution-error-POSTtrivias-store" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTtrivias-store"></code></pre>
</div>
<form id="form-POSTtrivias-store" data-method="POST" data-path="trivias/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('POSTtrivias-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-POSTtrivias-store" onclick="tryItOut('POSTtrivias-store');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTtrivias-store" onclick="cancelTryOut('POSTtrivias-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-POSTtrivias-store" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>trivias/store</code></b>
</p>
<p>
<label id="auth-POSTtrivias-store" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTtrivias-store" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>question</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="question" data-endpoint="POSTtrivias-store" data-component="body" required  hidden>
<br>
Trivia question. Max: 255. Ex: What is name of our panet?
</p>
<p>
<b><code>options</code></b>&nbsp;&nbsp;<small>string[]</small>  &nbsp;
<input type="text" name="options.0" data-endpoint="POSTtrivias-store" data-component="body" required  hidden>
<input type="text" name="options.1" data-endpoint="POSTtrivias-store" data-component="body" hidden>
<br>
Options. Ex: Earth, Jupiter
</p>
<p>
<b><code>answer</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="answer" data-endpoint="POSTtrivias-store" data-component="body" required  hidden>
<br>
The key of the options value which is the correct answer. Ex: 0 (Earth is the first value of option and its key is 0)
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTtrivias-store" data-component="body" required  hidden>
<br>
Active/Inactive. Possible values: 1 (Active), 0 (Inactive). Ex: 1
</p>

</form>


## Update

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

Use this end point to update trivia.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/trivias/13/update" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"question":"asperiores","options":["neque","laudantium"],"answer":14,"is_active":6}'

```


> Example response (200):

```json
{
    "message": "Trivia updated successfully",
    "data": {
        "trivia": {
            "id": 14,
            "question": "What planet has rings?",
            "options": [
                "Mercury",
                "Venus",
                "Saturn"
            ],
            "answer": 2,
            "is_active": 1,
            "is_used": 0,
            "created_by": 2,
            "updated_by": 2,
            "created_at": "2021-07-16T04:42:32.000000Z",
            "updated_at": "2021-07-16T04:44:02.000000Z",
            "answer_value": "Saturn"
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "question": [
            "The question field is required."
        ],
        "options": [
            "The options field is required."
        ],
        "answer": [
            "The answer field is required."
        ],
        "is_active": [
            "The active\/inactive field is required"
        ]
    }
}
```
> Example response (404):

```json
{
    "message": "Trivia not found"
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTtrivias--id--update" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTtrivias--id--update"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTtrivias--id--update"></code></pre>
</div>
<div id="execution-error-POSTtrivias--id--update" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTtrivias--id--update"></code></pre>
</div>
<form id="form-POSTtrivias--id--update" data-method="POST" data-path="trivias/{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('POSTtrivias--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-POSTtrivias--id--update" onclick="tryItOut('POSTtrivias--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-POSTtrivias--id--update" onclick="cancelTryOut('POSTtrivias--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-POSTtrivias--id--update" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>trivias/{id}/update</code></b>
</p>
<p>
<label id="auth-POSTtrivias--id--update" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTtrivias--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>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="POSTtrivias--id--update" data-component="url" required  hidden>
<br>
The ID of the trivia. Ex: 1
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>question</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="question" data-endpoint="POSTtrivias--id--update" data-component="body" required  hidden>
<br>
Trivia question. Max: 255. Ex: What planet has rings?
</p>
<p>
<b><code>options</code></b>&nbsp;&nbsp;<small>string[]</small>  &nbsp;
<input type="text" name="options.0" data-endpoint="POSTtrivias--id--update" data-component="body" required  hidden>
<input type="text" name="options.1" data-endpoint="POSTtrivias--id--update" data-component="body" hidden>
<br>
Options. Ex: Mercury, Venus, Saturn
</p>
<p>
<b><code>answer</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="answer" data-endpoint="POSTtrivias--id--update" data-component="body" required  hidden>
<br>
The key of the options value which is the correct answer. Ex: 2 (Saturn is the thrid value of option and its key is 2)
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTtrivias--id--update" data-component="body" required  hidden>
<br>
Active/Inactive. Possible values: 1 (Active), 0 (Inactive). Ex: 1
</p>

</form>


## Delete

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

Use this end point to delete trivias(s).

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/trivias/delete" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"ids":[6,1]}'

```


> Example response (200):

```json
{
    "message": "Trivias deleted successfully"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "ids": [
            "The ids field is required."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTtrivias-delete" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTtrivias-delete"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTtrivias-delete"></code></pre>
</div>
<div id="execution-error-POSTtrivias-delete" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTtrivias-delete"></code></pre>
</div>
<form id="form-POSTtrivias-delete" data-method="POST" data-path="trivias/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('POSTtrivias-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-POSTtrivias-delete" onclick="tryItOut('POSTtrivias-delete');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTtrivias-delete" onclick="cancelTryOut('POSTtrivias-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-POSTtrivias-delete" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>trivias/delete</code></b>
</p>
<p>
<label id="auth-POSTtrivias-delete" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTtrivias-delete" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>ids</code></b>&nbsp;&nbsp;<small>integer[]</small>  &nbsp;
<input type="number" name="ids.0" data-endpoint="POSTtrivias-delete" data-component="body" required  hidden>
<input type="number" name="ids.1" data-endpoint="POSTtrivias-delete" data-component="body" hidden>
<br>
Trivia Id
</p>

</form>


## Change Status

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

Use this end point to change status of trivias(s).

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/trivias/change-status" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"ids":[18,13],"is_active":13}'

```


> Example response (200):

```json
{
    "message": "Status changed successfully"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed.",
    "errors": {
        "ids": [
            "The ids field is required."
        ],
        "is_active": [
            "The active\/inactive field is required"
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTtrivias-change-status" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTtrivias-change-status"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTtrivias-change-status"></code></pre>
</div>
<div id="execution-error-POSTtrivias-change-status" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTtrivias-change-status"></code></pre>
</div>
<form id="form-POSTtrivias-change-status" data-method="POST" data-path="trivias/change-status" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTtrivias-change-status', 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-POSTtrivias-change-status" onclick="tryItOut('POSTtrivias-change-status');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTtrivias-change-status" onclick="cancelTryOut('POSTtrivias-change-status');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTtrivias-change-status" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>trivias/change-status</code></b>
</p>
<p>
<label id="auth-POSTtrivias-change-status" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTtrivias-change-status" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>ids</code></b>&nbsp;&nbsp;<small>integer[]</small>  &nbsp;
<input type="number" name="ids.0" data-endpoint="POSTtrivias-change-status" data-component="body" required  hidden>
<input type="number" name="ids.1" data-endpoint="POSTtrivias-change-status" data-component="body" hidden>
<br>
Trivia Id
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTtrivias-change-status" data-component="body" required  hidden>
<br>
Possible values: 1 (Active), 0 (Inactive). Ex: 1
</p>

</form>



