跳转到主要内容
POST
/
v1
/
collections
/
create
Create a new collection
curl --request POST \
  --url https://api.bibigpt.co/api/v1/collections/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "isPublic": false
}
'
{
  "id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.bibigpt.co/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
name
string
必填
Required string length: 1 - 120
description
string
Maximum string length: 2000
isPublic
boolean
默认值:false

响应

Successful response

id
string
必填