跳转到内容

api_creators_update

PUT
/api/creators/{id}/
curl --request PUT \
--url https://example.com/api/creators/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "display_name": "example", "plan": "free", "credits": 1 }'

创建者管理ViewSet

id
必填
string format: uuid

用于标识此创建者的 UUID 字符串。

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"
}