Create project

以 Markdown 格式查看

Create a project for an Enterprise workspace. Optional initial member and agent assignments are applied atomically with project creation. All workspace members except viewers may write; PATs require the write scope.

请求头

Authorizationstring必需

Bearer {access_token}

X-Workspace-Idstring必需格式: "uuid"
Workspace UUID

请求

name (required), description, agentIds, memberIds

namestring必需格式: "\S">=1 character

Leading and trailing whitespace is trimmed; the trimmed name must contain 1-100 Unicode characters.

agentIdslist of strings可选
Agent UUIDs to assign atomically when the project is created.
descriptionstring or null可选<=1000 characters

Optional project description; null stores no description.

memberIdslist of strings可选
Member UUIDs to assign atomically when the project is created.

响应

data: created project

dataobject可选

错误

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error