api_creators_partial_update
PATCH
/api/creators/{id}/
const url = 'https://example.com/api/creators/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/';const options = { method: 'PATCH', 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 PATCH \ --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
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"}