跳转到主要内容
POST
/
publishers
Create a new publisher
curl --request POST \
  --url https://api.comfy.org/publishers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "createdAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "id": "<string>",
  "logo": "<string>",
  "members": [
    {
      "id": "<string>",
      "role": "<string>",
      "user": {
        "email": "<string>",
        "id": "<string>",
        "name": "<string>"
      }
    }
  ],
  "name": "<string>",
  "source_code_repo": "<string>",
  "status": "PublisherStatusActive",
  "support": "<string>",
  "website": "<string>"
}
'
{
  "createdAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "id": "<string>",
  "logo": "<string>",
  "members": [
    {
      "id": "<string>",
      "role": "<string>",
      "user": {
        "email": "<string>",
        "id": "<string>",
        "name": "<string>"
      }
    }
  ],
  "name": "<string>",
  "source_code_repo": "<string>",
  "status": "PublisherStatusActive",
  "support": "<string>",
  "website": "<string>"
}

授权

Authorization
string
header
必填

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

请求体

application/json
createdAt
string<date-time>

The date and time the publisher was created.

description
string
id
string

The unique identifier for the publisher. It's akin to a username. Should be lowercase.

URL to the publisher's logo.

members
object[]

A list of members in the publisher.

name
string
source_code_repo
string
status
enum<string>
可用选项:
PublisherStatusActive,
PublisherStatusBanned
support
string
website
string

响应

Publisher created successfully

createdAt
string<date-time>

The date and time the publisher was created.

description
string
id
string

The unique identifier for the publisher. It's akin to a username. Should be lowercase.

URL to the publisher's logo.

members
object[]

A list of members in the publisher.

name
string
source_code_repo
string
status
enum<string>
可用选项:
PublisherStatusActive,
PublisherStatusBanned
support
string
website
string