# Add an approved line

Adds a line you wrote. It is vetted at once. Refused with CONFLICT when the library already holds 100 vetted lines or the same text. The text is at most 280 characters, the theme 40 and the avoid-when note 200. Pass clientId for one client's library. Refused with FORBIDDEN for an API key: only the signed-in user can vet. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/library/approved-lines
x-api-key: YOUR_API_KEY
```

## 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."
    }
  },
  "required": [
    "text"
  ]
}
```

## Responses

- `200`: The new line.
