Returning.AI
Light Mode
create new category
DevelopingPOST
/categoriesRequest
Body Params application/json
serverId
string
required
title
string
required
description
string
required
private
boolean
required
Example
{
"serverId": "{{serverId}}",
"title": "General Discussion",
"description": "This is a category for general discussion.",
"private": false
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
success
boolean
required
message
string
required
devMessage
string
required
body
object
required
serverId
string
required
title
string
required
description
string
required
private
boolean
required
roles
array[string]
required
users
array[string]
required
owner
object
required
categoryOrder
integer
required
translationAllowed
boolean
required
_id
string
required
createdAt
string
required
updatedAt
string
required
__v
integer
required
Example
{
"meta": {
"success": true,
"message": "Category has been created successfully",
"devMessage": "Category has been created successfully"
},
"body": {
"serverId": "669b462658695ff095d431af",
"title": "General Discussion",
"description": "This is a category for general discussion.",
"private": false,
"roles": [],
"users": [],
"owner": {
"id": "1"
},
"categoryOrder": 0,
"translationAllowed": false,
"_id": "66a27e08fe1c87971214289d",
"createdAt": "2024-07-25T16:32:08.449Z",
"updatedAt": "2024-07-25T16:32:08.449Z",
"__v": 0
}
}
Last modified: 3 months ago