跳转到内容

api_creators_create

POST
/api/creators/
curl --request POST \
--url https://example.com/api/creators/ \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "display_name": "example", "plan": "free", "credits": 1 }'

创建者管理ViewSet

object
id
必填
string format: uuid
email
必填
string format: email
<= 254 characters
display_name
必填
string
<= 100 characters
plan
  • free - 免费版
  • pro - 专业版
  • enterprise - 企业版
string
允许的值: free pro enterprise
credits
integer
>= -2147483648 <= 2147483647
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
媒体类型application/json
object
id
必填
string format: uuid
email
必填
string format: email
<= 254 characters
display_name
必填
string
<= 100 characters
plan
  • free - 免费版
  • pro - 专业版
  • enterprise - 企业版
string
允许的值: free pro enterprise
credits
integer
>= -2147483648 <= 2147483647
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
示例
{
"plan": "free"
}