- Returning.AI
- Auth
- User
- Server
- Category
- Role
- Channel
- Language Setting
- Leaderboard
- Badge
- Gamification
- Api Token
- Custom Userfields
- Integration
create new server
Developing
POST
/servers
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params multipart/form-data
name
string
optional
Example:
Vise Neg
image
file
optional
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.returning.ai/api/v1/servers' \
--form 'name="Vise Neg"' \
--form 'image=@""'
Responses
🟢201Created
application/json
Body
meta
object
required
success
boolean
required
message
string
required
devMessage
string
required
body
object
required
name
string
required
image
string
required
owner
object
required
_id
string
required
__v
integer
required
id
string
required
Example
{
"meta": {
"success": true,
"message": "Server has been created successfully",
"devMessage": "Server has been created successfully"
},
"body": {
"name": "Galaxy Food And Drink",
"image": "https://chartsnapshot.s3.amazonaws.com/apireturningai/tester/1721923616255-d763c952a89131696dd3bdf79fa0108.png",
"owner": {
"id": "2"
},
"_id": "66a278272381a39bf731bf4e",
"__v": 0,
"id": "66a278272381a39bf731bf4e"
}
}
Modified at 2024-07-31 15:37:21