social.colibri.beta.category.create
Creates a category in a community.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | category.beta.colibri.social |
| Indexed |
Showing version bafyreibdytdpsw74ynmtk4h464d7dzidhsgvxzaktdx4fc3quhb2432vcm. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Creates a category in a community.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "The caller lacks the category.create permission.",
"name": "Forbidden"
},
{
"description": "No community exists at the given DID.",
"name": "CommunityNotFound"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"community": {
"description": "The community to create the category in.",
"format": "did",
"type": "string"
},
"name": {
"description": "The category's name.",
"maxLength": 32,
"minLength": 1,
"type": "string"
}
},
"required": [
"community",
"name"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"category": {
"description": "The newly created category.",
"ref": "social.colibri.beta.community.defs#categoryView",
"type": "ref"
}
},
"required": [
"category"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.colibri.beta.category.create",
"lexicon": 1
}