Creates a category in a community.
Input
Encoding
application/jsoncommunity
stringdid
Required
The community to create the category in.
name
string
Required
The category's name.
maxLength: 32 bytesminLength: 1 bytesOutput
Encoding
application/jsoncategory
refsocial.colibri.beta.community.defs#categoryView
Required
The newly created category.
Errors
AuthRequired
The request is missing, malformed, or unverifiable service auth. Forbidden
The caller lacks the category.create permission. CommunityNotFound
No community exists at the given DID. CredentialsUnavailable
The AppView cannot act as the community because its stored credentials are missing or unusable. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"community",
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "The category's name."
},
"community": {
"type": "string",
"format": "did",
"description": "The community to create the category in."
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthRequired",
"description": "The request is missing, malformed, or unverifiable service auth."
},
{
"name": "Forbidden",
"description": "The caller lacks the category.create permission."
},
{
"name": "CommunityNotFound",
"description": "No community exists at the given DID."
},
{
"name": "CredentialsUnavailable",
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"category"
],
"properties": {
"category": {
"ref": "social.colibri.beta.community.defs#categoryView",
"type": "ref",
"description": "The newly created category."
}
}
},
"encoding": "application/json"
},
"description": "Creates a category in a community."
}