Planner
API for listing learning objects to display on the student planner and calendar
API for creating, accessing and updating Planner Notes. PlannerNote are used to set reminders and notes to self about courses or general events.
API for creating, accessing and updating planner override. PlannerOverrides are used to control the visibility of objects displayed on the Planner.
A PlannerNote object looks like:
A PlannerOverride object looks like:
GET /api/v1/planner/items
GET /api/v1/planner/items
Scope: url:GET|/api/v1/planner/items
GET /api/v1/users/:user_id/planner/items
GET /api/v1/users/:user_id/planner/items
Scope: url:GET|/api/v1/users/:user_id/planner/items
Retrieve the paginated list of objects to be shown on the planner for the current user with the associated planner override to override an item’s visibility if set.
Planner items for a student may also be retrieved by a linked observer. Use the path that accepts a user_id and supply the student’s id.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| Only return items starting from the given date. The value should be formatted as: yyyy-mm-dd or ISO 8601 YYYY-MM-DDTHH:MM:SSZ. |
|
| Only return items up to the given date. The value should be formatted as: yyyy-mm-dd or ISO 8601 YYYY-MM-DDTHH:MM:SSZ. |
|
| List of context codes of courses and/or groups whose items you want to see. If not specified, defaults to all contexts associated to the current user. Note that concluded courses will be ignored unless specified in the includes[] parameter. The format of this field is the context type, followed by an underscore, followed by the context id. For example: course_42, group_123 |
|
| Return planner items for the given observed user. Must be accompanied by context_codes[]. The user making the request must be observing the observed user in all the courses specified by context_codes[]. |
|
| Only return items that have new or unread activity Allowed values: |
Example Response:
GET /api/v1/planner_notes
GET /api/v1/planner_notes
Scope: url:GET|/api/v1/planner_notes
Retrieve the paginated list of planner notes
Retrieve planner note for a user
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| Only return notes with todo dates since the start_date (inclusive). No default. The value should be formatted as: yyyy-mm-dd or ISO 8601 YYYY-MM-DDTHH:MM:SSZ. |
|
| Only return notes with todo dates before the end_date (inclusive). No default. The value should be formatted as: yyyy-mm-dd or ISO 8601 YYYY-MM-DDTHH:MM:SSZ. If end_date and start_date are both specified and equivalent, then only notes with todo dates on that day are returned. |
|
| List of context codes of courses whose notes you want to see. If not specified, defaults to all contexts that the user belongs to. The format of this field is the context type, followed by an underscore, followed by the context id. For example: course_42 Including a code matching the user’s own context code (e.g. user_1) will include notes that are not associated with any particular course. |
Example Response:
Returns a list of PlannerNote objects.
GET /api/v1/planner_notes/:id
GET /api/v1/planner_notes/:id
Scope: url:GET|/api/v1/planner_notes/:id
Retrieve a planner note for the current user
Returns a PlannerNote object.
PUT /api/v1/planner_notes/:id
PUT /api/v1/planner_notes/:id
Scope: url:PUT|/api/v1/planner_notes/:id
Update a planner note for the current user
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The title of the planner note. |
|
| Text of the planner note. |
|
| The date where this planner note should appear in the planner. The value should be formatted as: yyyy-mm-dd. |
|
| The ID of the course to associate with the planner note. The caller must be able to view the course in order to associate it with a planner note. Use a null or empty value to remove a planner note from a course. Note that if the planner note is linked to a learning object, its course_id cannot be changed. |
Returns a PlannerNote object.
POST /api/v1/planner_notes
POST /api/v1/planner_notes
Scope: url:POST|/api/v1/planner_notes
Create a planner note for the current user
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The title of the planner note. |
|
| Text of the planner note. |
|
| The date where this planner note should appear in the planner. The value should be formatted as: yyyy-mm-dd. |
|
| The ID of the course to associate with the planner note. The caller must be able to view the course in order to associate it with a planner note. |
|
| The type of a learning object to link to this planner note. Must be used in conjunction wtih linked_object_id and course_id. Valid linked_object_type values are: ‘announcement’, ‘assignment’, ‘discussion_topic’, ‘wiki_page’, ‘quiz’ |
|
| The id of a learning object to link to this planner note. Must be used in conjunction with linked_object_type and course_id. The object must be in the same course as specified by course_id. If the title argument is not provided, the planner note will use the learning object’s title as its title. Only one planner note may be linked to a specific learning object. |
Returns a PlannerNote object.
PlannerNotesController#destroy
DELETE /api/v1/planner_notes/:id
DELETE /api/v1/planner_notes/:id
Scope: url:DELETE|/api/v1/planner_notes/:id
Delete a planner note for the current user
Returns a PlannerNote object.
PlannerOverridesController#index
GET /api/v1/planner/overrides
GET /api/v1/planner/overrides
Scope: url:GET|/api/v1/planner/overrides
Retrieve a planner override for the current user
Returns a list of PlannerOverride objects.
PlannerOverridesController#show
GET /api/v1/planner/overrides/:id
GET /api/v1/planner/overrides/:id
Scope: url:GET|/api/v1/planner/overrides/:id
Retrieve a planner override for the current user
Returns a PlannerOverride object.
PlannerOverridesController#update
PUT /api/v1/planner/overrides/:id
PUT /api/v1/planner/overrides/:id
Scope: url:PUT|/api/v1/planner/overrides/:id
Update a planner override’s visibilty for the current user
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| determines whether the planner item is marked as completed |
|
| determines whether the planner item shows in the opportunities list |
Returns a PlannerOverride object.
PlannerOverridesController#create
POST /api/v1/planner/overrides
POST /api/v1/planner/overrides
Scope: url:POST|/api/v1/planner/overrides
Create a planner override for the current user
Request Parameters:
Parameter | Type | Description |
---|---|---|
| Required | Type of the item that you are overriding in the planner Allowed values: |
| Required | ID of the item that you are overriding in the planner |
|
| If this is true, the item will show in the planner as completed |
|
| If this is true, the item will not show in the opportunities list |
Returns a PlannerOverride object.
PlannerOverridesController#destroy
DELETE /api/v1/planner/overrides/:id
DELETE /api/v1/planner/overrides/:id
Scope: url:DELETE|/api/v1/planner/overrides/:id
Delete a planner override for the current user
Returns a PlannerOverride object.
© Instructure, Inc. Generated on Wed Nov 6 14:20:08 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated