# Respond to Approval Request

<mark style="color:blue;">**`POST`**</mark> `https://api.sfox.com/v1`**`/approvals/:request_id`**

Approve or deny a request.

### Path Parameters

<table><thead><tr><th width="227">Parameter</th><th width="80">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong><code>request_id</code></strong> <mark style="color:red;">required</mark></td><td>int</td><td>ID of the approval request generated by sFOX you wish to respond to</td></tr></tbody></table>

### Body Parameters

<table><thead><tr><th width="191">Parameter</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong><code>approve</code></strong> <mark style="color:red;">required</mark></td><td>boolean</td><td>Approves the request if true, denies the request if false</td></tr></tbody></table>

### Example Requests

{% tabs %}
{% tab title="Shell" %}

```bash
curl -X POST \
  -H 'Content-type: application/json' \
  -H 'Authorization: Bearer <API_TOKEN>' \
  --data '{ "approve": true}'  \
  'https://api.sfox.com/v1/approvals/1'
```

{% endtab %}

{% tab title="NodeJS" %}

```javascript
import requests

data = requests.post(
  "https://api.sfox.com/v1/approvals/1",
  headers={
    "Authorization": "Bearer <API_KEY>",
  },
  data={
    "approve": True
  }
)
print(data)
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

data = requests.patch(
  "https://api.sfox.com/v1/approval-rules/1",
  headers={
    "Authorization": "Bearer <API_KEY>",
  },
  data={
   "required_approvals": 3,
   "threshold": 500
  }
)
print(data)
```

{% endtab %}
{% endtabs %}
