# Reject user change request

Reject one pending change request for a user.

## Endpoint

<mark style="color:red;">`DELETE`</mark> `https://api.signitic.app/user-change-requests/:email/:field`

## Headers

| Name                                        | Type   | Description  |
| ------------------------------------------- | ------ | ------------ |
| x-api-key<mark style="color:red;">\*</mark> | String | Your API key |

## Path Parameters

| Name                                    | Type   | Description          |
| --------------------------------------- | ------ | -------------------- |
| email<mark style="color:red;">\*</mark> | String | User email           |
| field<mark style="color:red;">\*</mark> | String | Requested field slug |

## Request body

No request body is required.

## Success response

### `200 OK`

```json
{
  "success": true,
  "code": 200,
  "data": {
    "operation": "rejected",
    "field": "phone",
    "user": {
      "email": "john.doe@example.com",
      "display_name": "John Doe",
      "change_requests": []
    }
  }
}
```

## Error responses

| Status | Internal code | When                                              |
| ------ | ------------- | ------------------------------------------------- |
| 400    | `101`         | The email format is invalid.                      |
| 401    | `99`          | The API key is missing or invalid.                |
| 404    | `102`         | The email does not match a user in the workspace. |
| 404    | `104`         | The field is not pending for the target user.     |
