# Edit an approved line

Changes a line's text, theme or avoid-when note. New text makes the line vetted; a theme or note alone leaves its status. Refused with CONFLICT when the new text matches another line, or when vetting would pass 100 vetted lines. Refused with FORBIDDEN for an API key: only the signed-in user can vet. Requires authentication.

```http
PATCH https://hiresweep.com/api/openapi/library/approved-lines/{id}
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 280
    },
    "theme": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "description": "What the line is about; empty clears it."
    },
    "avoidWhen": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "description": "When not to use the line; empty clears it."
    },
    "clientId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "The client whose data this is, for an operator applying on behalf of clients. Omit for your own."
    }
  }
}
```

## Responses

- `200`: The updated line.
