social.colibri.beta.category.create

Creates a category in a community.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · procedure
Kindprocedure
Authoritycategory.beta.colibri.social
Indexed

Procedure

procedure · POST

Input

application/json

Members allowed to post in the category's channels in addition to allowedRoles.

itemsstring · did

A member permitted to post.

Roles allowed to post in the category's channels. Empty means no role restriction. A channel that sets its own posting restriction overrides this.

itemsstring · record-key

A role permitted to post.

community

requiredstring · did

The community to create the category in.

name

requiredstring

The category's name.

  • minLength: 1
  • maxLength: 32

ownerOnly

boolean

Whether only community admins may post in the category's channels. A channel that sets its own posting restriction overrides this.

Members that may read the category's channels in addition to visibleToRoles.

itemsstring · did

A member permitted to read.

Roles that may read the category's channels. Empty or absent means every member may read them. A channel with its own non-empty visibleToRoles or visibleToMembers overrides this. A non-empty list makes the category's other channels private, enforced the same way as a private channel.

itemsstring · record-key

A role permitted to read.

Output

application/json

category

requiredref

The newly created category.

Errors

AuthRequired

The request is missing, malformed, or unverifiable service auth.

Forbidden

The caller lacks the category.create permission, or grants visibility to a role at or above their own highest position.

CommunityNotFound

No community exists at the given DID.

CredentialsUnavailable

The AppView cannot act as the community because its stored credentials are missing or unusable.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.