# Create a chat message

**POST /data/chat-messages**

Create a chat message. Send the fields of the new row in JSON. You must be an administrator.


## Servers
- /api: /api ()


## Authentication methods
- Jwt authorization


## Parameters



### Body: application/json (object)

- **chat_id** (string(uuid))

- **person_id** (string(uuid))

- **text** (string)



## Responses
### 201
The new chat message

#### Body: application/json (object)
- **id** (string(uuid))

- **chat_id** (string(uuid))

- **person_id** (string(uuid))

- **text** (string)

- **created_at** (string(date-time))

- **updated_at** (string(date-time))


### 400
The body is not valid, or a field breaks a database constraint

### 403
You are not an administrator


[Powered by Bump.sh](https://bump.sh)
