در حال بارگذاری…
Record a new progress-photo entry.
| Permission | Description |
|---|---|
tracker_progress_photos.create | Create tracker progress photo |
| Name | Type | Required | Description |
|---|---|---|---|
tracked_at | string | Yes | Datetime the photo was taken |
pose |
| string |
| No |
One of front, side, back, other. Nullable. |
notes | string | No | Optional notes (max 2000 characters) |
The image is not part of this request. Create the entry first, then attach the file with a
second call to POST /api/v1/media using
attachable_type=tracker_progress_photo and the returned id as attachable_id — the same
two-step flow a meal photo uses. Attaching is authorized by update on the entry, so only its
owner can add an image to it.
user_id is taken from the authenticated token and is never read from the request body.
{
"data": { /* tracker progress photo resource, with an empty `media` array */ }
}
| Status | Error Type | Reference |
|---|---|---|
| 422 | Validation Error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden | Permission error |