# Restore a hostname

`POST /app/discovery/hosts/{id}/restore`

Brings an ignored hostname back to new.

Scope: `assets:write`.

## Parameters

- `id` (path, integer, required)

## Example

```bash
curl -X POST "https://api.fortwatch.ai/app/discovery/hosts/42/restore" \
  -H "Authorization: Bearer $FORTWATCH_API_KEY"
```

## Response 200

The request succeeded.

- `id` (number, required)
- `projectId` (number, required)
- `domain` (string, required)
- `host` (string, required)
- `sources` (string[], required)
- `resolves` (object | null, required)
- `resolvedIp` (object | null, required)
- `cname` (object | null, required)
- `wildcard` (object | null, required)
- `status` (string, required)
- `assetId` (object | null, required)
- `firstSeenAt` (string (date-time), required)
- `lastSeenAt` (string (date-time), required)
- `project` (object, required)
  - `id` (number, required)
  - `name` (string, required)
  - `color` (string, required)

```json
{
  "id": 42,
  "projectId": 42,
  "domain": "app.example.com",
  "host": "app.example.com",
  "sources": [
    "string"
  ],
  "resolves": {},
  "resolvedIp": {},
  "cname": {},
  "wildcard": {},
  "status": "string",
  "assetId": {},
  "firstSeenAt": "2026-10-16T12:00:00.000Z",
  "lastSeenAt": "2026-10-16T12:00:00.000Z",
  "project": {
    "id": 42,
    "name": "Production",
    "color": "string"
  }
}
```

## Errors

- 400: The request is not valid: a field is missing or has the wrong shape (the message names it).
- 401: No valid credentials: the API key or access token is missing, revoked or expired (INVALID_API_KEY, INVALID_TOKEN).
- 403: Not allowed: the key or token lacks this scope (SCOPE_REQUIRED), the route is dashboard-only (SESSION_REQUIRED), or a plan limit applies.
- 404: Not found in your workspace.
- 429: Too many requests (RATE_LIMITED): wait the seconds Retry-After gives.
