>>

Create Category

This route requires a valid Authorization header.

POST/spheres/<sphere_id>/categories

Create a category for channels inside a sphere.

>>

Path Params

NameType
sphere_idNumber
>>

Request Body

FieldTypeDescription
nameStringThe name of this category.
>>

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 \
  -H "Authorization: <token>" \
  --json '{"name":"Bean"}' \
  https://api.eludris.gay/spheres/1234/categories