PATCH /v1/subjects/:id to modify an existing subject profile. Send only the fields you want to update — all other fields remain unchanged.
Endpoint
Path Parameters
string
required
The unique identifier of the subject you want to update.
Body Parameters
All body parameters are optional. Include only the fields you want to change.string
Updated display name. Maximum 40 characters. Must be unique across your account.
string
Updated hex color code (e.g.
#6366f1).array
A full replacement of the subject’s weekly slot schedule. The value you provide replaces the entire existing
slots array — it is not merged. Send an empty array ([]) to remove all scheduled slots.Response
Returns the full updated subject object inside thedata field.
string
Unique identifier for the subject.
string
Display name of the subject.
string
The subject type. Unchanged by this endpoint.
string
Hex color code for this subject.
array
The updated weekly time slots for this subject.
array
Array of syllabus topic objects. Each item has
title (string), duration (integer, minutes), and done (boolean). Unchanged by this endpoint.Examples
When you update
slots, the new array fully replaces the old one. Any previously defined slots not included in the new array will be removed.