# Reject

## Reject Process

<mark style="color:purple;">`PATCH`</mark> `https://biometridon.polygon.pt/api/processes/:id/reject`

This endpoint allows you to reject a process.

#### Path Parameters

| Name | Type   | Description              |
| ---- | ------ | ------------------------ |
| id   | string | ID of the process to get |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Content-Type  | string | application/json          |
| Authorization | string | Authentication user token |

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

```bash
{
  "data": {},
  "meta": {
    "message": "Process rejected with success."
  },
  "status": true
}
```

{% endtab %}

{% tab title="404 " %}

```bash
{
  "data": {},
  "meta": {
    "message": "Process not found",
    "code": "4015"
  },
  "status": false
}
```

{% endtab %}
{% endtabs %}

```javascript
// Example

{
	"reason": "Rejected reason"
}
```
