# Privacy Setting


## Update

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

Use this end point to update privacy settings.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/privacy-settings/update" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"privacy_show_recent_picks":0}'

```


> Example response (200):

```json
{
    "message": "Updated!"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "privacy_show_recent_picks": [
            "The privacy show recent picks field is required."
        ]
    }
}
```
<div id="execution-results-POSTprivacy-settings-update" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTprivacy-settings-update"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTprivacy-settings-update"></code></pre>
</div>
<div id="execution-error-POSTprivacy-settings-update" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTprivacy-settings-update"></code></pre>
</div>
<form id="form-POSTprivacy-settings-update" data-method="POST" data-path="privacy-settings/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('POSTprivacy-settings-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-POSTprivacy-settings-update" onclick="tryItOut('POSTprivacy-settings-update');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTprivacy-settings-update" onclick="cancelTryOut('POSTprivacy-settings-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-POSTprivacy-settings-update" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>privacy-settings/update</code></b>
</p>
<p>
<label id="auth-POSTprivacy-settings-update" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTprivacy-settings-update" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>privacy_show_recent_picks</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="privacy_show_recent_picks" data-endpoint="POSTprivacy-settings-update" data-component="body" required  hidden>
<br>
Privacy settings flag for show picks to other users. Possible values: 1 (Yes), 0 (No).
</p>

</form>



