Skip to main content

Create week-plan item

Creates an item and, if needed, the week header (lazy create).
1 min read
post/week-plan/profiles/{studioId}/items
Request example
Response
post/week-plan/profiles/{studioId}/items

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#

Body

application/json
weekStartDateKeystringrequired#
dateKeystring#
Day YYYY-MM-DD. Null or omitted = Later.
titlestringrequired#
notesstring#
sourceTaskIdstring#
sourceActivityIdstring#
Habit to log when marking done. Incompatible with sourceTaskId.
calendarReminderIdstring#
repeatWeeklyboolean#
true creates a weekly series on the weekday of dateKey. Requires a day.

Responses

application/json
Created.
dataobjectrequired#
Show child attributes
idstringrequired#
request_idstringrequired#