Skip to main content
Version: v3New

Update Category

PUT 

/courses/products/:productId/categories/:categoryId

Update a category. Requires a Location token with courses.write. Accepts the same category columns as create. All fields optional.

Request​

Version stringrequired

API Version

Available optionsv3
productId string<uuid>required

Product id

Possible values: non-empty

categoryId string<uuid>required

Category id

Possible values: non-empty

locationId stringrequired

Location id or sub-account id is required.

Possible values: non-empty

application/json

Bodyrequired

    descriptionstringnullable
    parentCategorystringnullable
    visibilitystring
    Available optionspublisheddraftlockeddrip
    posterImagestringnullable
    sequenceNonumber
    dripDaysnumber
    metadataobjectnullable
    commentPermissionstringnullable

    Optional. Null is treated as omitted (membership defaults to enabled on create).

    Available optionshiddenenabledlocked
    lockedBystringnullable

    Published lesson id in this product that unlocks this category. Must not be a draft lesson, a lesson in a draft module, or a lesson inside this category. When visibility is locked, provide lockedBy, lockedByCategory, or both.

    lockedByCategorystringnullable

    Published category id in this product that unlocks this category. Must not be this category or a draft module. When visibility is locked, provide lockedBy, lockedByCategory, or both.

    titlestring

    Category title

application/json

Success

Schema
    idstringrequired

    Category id

    titlestringrequired
    descriptionstringnullablerequired
    parentCategorystringnullablerequired
    visibilitystringrequired
    Available optionspublisheddraftlockeddrip
    posterImagestringnullablerequired
    sequenceNonumberrequired
    dripDaysnumberrequired
    metadataobjectnullablerequired
    commentPermissionstringrequired
    Available optionshiddenenabledlocked
    lockedBystringnullablerequired
    lockedByCategorystringnullablerequired
    createdAtstringrequired
    updatedAtstringrequired