api_creators_create
POST
/api/creators/
const url = 'https://example.com/api/creators/';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","display_name":"example","plan":"free","credits":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
display_name
必填
string
plan
free- 免费版pro- 专业版enterprise- 企业版
string
credits
integer
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
object
id
必填
string format: uuid
email
必填
string format: email
display_name
必填
string
plan
free- 免费版pro- 专业版enterprise- 企业版
string
credits
integer
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
object
id
必填
string format: uuid
email
必填
string format: email
display_name
必填
string
plan
free- 免费版pro- 专业版enterprise- 企业版
string
credits
integer
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
媒体类型application/json
object
id
必填
string format: uuid
email
必填
string format: email
display_name
必填
string
plan
free- 免费版pro- 专业版enterprise- 企业版
string
credits
integer
created_at
必填
string format: date-time
updated_at
必填
string format: date-time
示例
{ "plan": "free"}