> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Restore archived partner

> Restore a previously archived partner and reactivate their portal access

## Endpoint

```
POST https://api.partnero.com/v1/partners/{id}/revoke-archive
```

Restores a previously archived partner. The partner regains access to the portal and returns to their original state.

## Path parameters

| Parameter | Type   | Required | Description         |
| --------- | ------ | -------- | ------------------- |
| `id`      | string | Yes      | Partner's unique ID |

## Request

```bash cURL theme={null}
curl --location --request POST 'https://api.partnero.com/v1/partners/partner_123/revoke-archive' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "status": 1
  }
  ```
</ResponseExample>

## Error responses

| Status | Error             | Solution                                          |
| ------ | ----------------- | ------------------------------------------------- |
| 404    | Partner not found | Check the partner ID is correct                   |
| 400    | Action failed     | Partner may not be archived or restoration failed |
