For Developers
Update Category
PATCH https://ed.link/api/v2/graph/classes/:class\_id/categories/:category\_id
Update an existing Category for the given Class.
Request Parameters
Parameter | Type | Description |
---|---|---|
class_id | string | The UUID of the desired Class. |
category_id | string | The UUID of the desired Category. |
Request Body
The request body should contain a partial Category object.
The following fields are allowed: title
, weight
, drop_lowest
, position
.
Sample Request
axios.patch('https://ed.link/api/v2/graph/classes/00000000-0000-0000-0000-000000000000/categories/00000000-0000-0000-0000-000000000000', {
headers: {
authorization: `Bearer ${integration_access_token}`
},
data: {
title: 'Quizzes'
}
});
Sample Response
{
"$request": "00000000-0000-0000-0000-000000000000",
"$data": {
"title": "Quizzes",
"position": 2,
"updated_date": "2021-12-27T18:53:45.077Z",
"id": "00000000-0000-0000-0000-000000000000"
}
}