# sendAppreciation

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| POST | https://api.thomas.co/v1/appreciations |

| Field | Value |
|---|---|
| operationId | sendAppreciation |
| method | POST |
| server | https://api.thomas.co/v1 |
| path | /appreciations |
| tags | `Recognition` |
| summary | Send appreciation to a colleague |
| badges | None |

## Request Parameters

None.

## Request Body

| Content type | Schema refs |
|---|---|
| application/json | #/components/schemas/AppreciationSendRequestDto |

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 201 | Appreciation sent | #/components/schemas/AppreciationSendResponseDto |
| 400 | Self-send, invalid recipient, or invalid body | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | The per-tenant appreciation feature flag is off (HOME_APPRECIATION_FEATURE_DISABLED) | #/components/schemas/ApiErrorResponseDto |
| 409 | One appreciation per day per recipient pair (APPRECIATION_RATE_LIMIT_EXCEEDED) | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 400 example

```json
{
  "statusCode": 400,
  "message": "Validation failed",
  "error": "HTTP_BAD_REQUEST"
}
```

### Response 401 example

```json
{
  "statusCode": 401,
  "message": "Invalid or missing authentication token",
  "error": "AUTH_TOKEN_INVALID"
}
```

### Response 403 example

```json
{
  "statusCode": 403,
  "message": "Appreciation is disabled for this tenant",
  "error": "HOME_APPRECIATION_FEATURE_DISABLED"
}
```

### Response 409 example

```json
{
  "statusCode": 409,
  "message": "Appreciation rate limit exceeded",
  "error": "APPRECIATION_RATE_LIMIT_EXCEEDED"
}
```
