Create a user note
POST/:customer_id/users/:uid/notes
Create a user note
Request
Path Parameters
Id of the tenant
Id of the user
- application/json
Body
required
Notes start date, timestamptz
Notes end date, timestamptz
Text field containing text related to the note.
Default value: ``
Responses
- 200
- 400
Successful response
- application/json
- Schema
- Example (from schema)
Schema
The primary key for the note, a unique identifier.
The FK linking the note to a specific tenant
The FK linking the note to a specific user.
The timestamp indicating when the note's started, with timezone information.
The timestamp indicating when the note's ended, with timezone information.
Text field containing text related to the note.
A list of trigger identifiers that triggered this note.
The total number of coughs observed during the note's time frame.
The rate of coughs observed, typically calculated as coughs per minute.
The timestamp when the note was created, set automatically.
The timestamp when the note was last updated, set automatically.
Note's timezone offset in minutes
{
"id": "string",
"customer_id": "string",
"uid": "string",
"start_date": "2024-12-03T11:32:12.451Z",
"end_date": "2024-12-03T11:32:12.451Z",
"text": "string",
"triggers_id": [
"string"
],
"cough_count": 0,
"cough_rate": 0,
"created_at": "2024-12-03T11:32:12.451Z",
"updated_at": "2024-12-03T11:32:12.451Z",
"utc_offset": 0
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string",
"errors": [
null
]
}