>>

Edit Category

This route requires a valid Authorization header.

PATCH/spheres/<sphere_id>/categories/<category_id>

Edit a category.

The default category cannot be edited.

Name must be less than or equal to 32 characters long if provided.

Position must be greater than or equal to 1. It is automatically upper-bounded to the number of channels in the category.

>>

Path Params

NameType
sphere_idNumber
category_idNumber
>>

Request Body

FieldTypeDescription
nameString?The name of this category.
positionNumber?
>>

Response

200Category

FieldTypeDescription
idNumberThe ID of this category.
nameStringThe name of this category.
positionNumberThis category’s position inside of its sphere.
channelsArray of SphereChannelsThe channels that belong to this category.
>>

Example

curl --request PATCH \
  -H "Authorization: <token>" \
  --json '{"name":"Bean","position":42}' \
  https://api.eludris.gay/spheres/1234/categories/5678