Create customer notice
Creates a new customer notice.
Note: This endpoint requires a user-scoped OAuth token. A pure
client_credentialstoken without user context will be rejected.
Request
POST /api/oauth/v2/resource/customer-notices
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
Content-Type | application/json |
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
customerUuid | string | Yes | UUID of the customer the note is assigned to |
text | string | Yes | Note text |
customDate | string | No | Date of the note (YYYY-MM-DD, default: current date) |
Response
Success (201 Created)
json
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"text": "Patient prefers morning appointments.",
"customDate": "2026-06-08",
"customer": {
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"firstName": "Anna",
"lastName": "Muster"
},
"treatingUser": {
"id": "d4c5b6a7-8901-2345-6789-0abcdef12345",
"firstName": "Maria",
"lastName": "Muster",
"abbreviation": "MM"
}
}
}Response fields
See Get customer notice for the full field description.
Beispiele
bash
curl -X POST "https://my.offisy.at/api/oauth/v2/resource/customer-notices" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{
"customerUuid": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
"text": "beispiel",
"customDate": "2026-04-15T10:00:00"
}'Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Invalid request data (e.g. customerUuid or text missing) |
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope notices not present |
| 404 | not_found | Customer not found |