Skip to main content
PATCH
Change a block

Authorizations

Authorization
string
header
required

Supabase access token: Authorization: Bearer <token>

Path Parameters

id
string
required

Body

application/json

Partial update. Only the fields present are written. startTime: null takes the time off the block and keeps its length. completedAt follows status and is not accepted.

date
string

Local Istanbul calendar date, YYYY-MM-DD. Moves the block.

startTime
string | null

Local Istanbul wall clock, HH:MM. Leave it out for a block with no time yet.

endTime
string | null

Optional, and it needs a startTime. It sets the length, and it wins over durationMin. An end before the start is a block that runs past midnight.

durationMin
integer | null

The length in minutes. Valid on its own: "45 minutes, time undecided".

Required range: 5 <= x <= 720
subject
string
Required string length: 1 - 64
topic
string | null
Maximum string length: 200
activity
string
Maximum string length: 40
targetQuestions
integer | null
Required range: 1 <= x <= 2000
notes
string | null
Maximum string length: 1000
position
integer
Required range: 0 <= x <= 1000
status
enum<string>
Available options:
planned,
done,
skipped
doneQuestions
integer | null
Required range: 0 <= x <= 2000

Response

The block after the change, and any overlaps

blocks
object[]
required
conflicts
object[]
required