Перейти до основного вмісту

UpdateResourceEventDto

resourceIdnumber

ID ресурсу

Example: 1
typestring

Тип події (vaccination | farrier | vet_checkup | deworming | dental | grooming | training | other)

Example: vaccination
titlestring

Заголовок

Example: Вакцинація проти грипу
notesstring
scheduledAtstring

Дата і час

Example: 2026-06-01T10:00:00Z
durationMinutesnumber
Default value: 30
performedByStaffIdnumber

ID співробітника, який виконує

externalProviderIdnumber

ID збереженого зовнішнього виконавця

externalProviderNamestring

Імʼя зовнішнього виконавця (якщо не зберігаємо у довіднику)

statusstring

Possible values: [planned, done, cancelled]

Default value: planned
coststring

Вартість

Example: 500.00
nextDueDatestring

Дата наступної процедури (для нагадування)

Example: 2027-06-01
attachmentsobject

Прикріплення (jsonb)

UpdateResourceEventDto
{
"resourceId": 1,
"type": "vaccination",
"title": "Вакцинація проти грипу",
"notes": "string",
"scheduledAt": "2026-06-01T10:00:00Z",
"durationMinutes": 30,
"performedByStaffId": 0,
"externalProviderId": 0,
"externalProviderName": "string",
"status": "planned",
"cost": "500.00",
"nextDueDate": "2027-06-01",
"attachments": {}
}