# Reject a proposal

`POST https://evohub.io/api/v1/catalog/matches/{id}/reject`

Part of the [Catalog API](https://docs.evohub.io/catalog.md) reference · operationId `rejectMatch`.

Refuses the proposal for good: the same pair is never proposed
again.

Requires the `catalog:resource:write` scope.

## Authorization

Any one of:

- `bearerKey`
- `headerKey`

Where:

- `bearerKey`: HTTP Bearer — An EvoHub API key (`evohub_…`) as a bearer token.
- `headerKey`: API key in the header `X-API-Key` — An EvoHub API key (`evohub_…`).

## Path parameters

- `id` (string, required, example `mch_3e5a7c9b1d2f4a6c8e0b2d4f6a8c1e3b`): The proposal's ID.

## Responses

### 200 — The proposal, decided.

Content type: `application/json`

Type: `object`

- `data` (Match)
  - `id` (string)
  - `resource_id` (string | null)
  - `application_id` (string | null)
  - `component_id` (string | null): The service proposed, when it exists.
  - `proposed_slug` (string | null): A slug nobody declared yet; accepting creates that service.
  - `reason` (string): Which rule proposed it.
  - `confidence` (number)
  - `status` (string, one of `proposed`, `accepted`, `rejected`)
  - `decided_by` (string | null)
  - `decided_at` (string (date-time) | null)
  - `created_at` (string (date-time))
  - `resource` (object | null)
    - `environment_id` (string)
    - `provider` (string)
    - `kind` (string)
    - `name` (string)
    - `namespace` (string)
    - `status` (string)
  - `application` (object | null)
    - `environment_id` (string)
    - `namespace` (string)
    - `name` (string)
    - `key_source` (string)
    - `owner_hint` (string | null)
  - `component` (object | null)
    - `slug` (string)
    - `display_name` (string)

### 401 — No API key was sent, or it is unknown, revoked or expired (`UNAUTHORIZED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 403 — The key lacks a scope this endpoint needs (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 404 — Nothing with this ID (or slug) exists in the organization (`NOT_FOUND`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 409 — The proposal was already accepted or rejected (`MATCH_DECIDED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 429 — Too many requests (`RATE_LIMITED`). Wait for `Retry-After` seconds.

Headers:

- `Retry-After` (integer): Seconds to wait before retrying.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 500 — Something went wrong on EvoHub's side (`INTERNAL_ERROR`). Retry later.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

## Example request

```bash
curl -X POST 'https://evohub.io/api/v1/catalog/matches/mch_3e5a7c9b1d2f4a6c8e0b2d4f6a8c1e3b/reject' \
  -H 'Authorization: Bearer <TOKEN>'
```
