Create Category
This route requires a valid Authorization header.
POST/spheres/<sphere_id>/categories
Create a category for channels inside a sphere.
Path Params
| Name | Type |
|---|---|
| sphere_id | Number |
Request Body
| Field | Type | Description |
|---|---|---|
| name | String | The name of this category. |
Response
200Category
| Field | Type | Description |
|---|---|---|
| id | Number | The ID of this category. |
| name | String | The name of this category. |
| position | Number | This category’s position inside of its sphere. |
| channels | Array of SphereChannels | The channels that belong to this category. |
Example
curl \
-H "Authorization: <token>" \
--json '{"name":"Bean"}' \
https://api.eludris.gay/spheres/1234/categories