Update project assignments

以 Markdown 格式查看

Add or remove project member and agent assignments in an Enterprise workspace. Added IDs may be unassigned or already assigned to this project; an ID assigned to another project returns entity_already_assigned. Removed IDs are detached only from this project. All workspace members except viewers may write; PATs require the write scope.

路径参数

idstring必需格式: "uuid"
Project UUID

请求头

Authorizationstring必需

Bearer {access_token}

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

请求

At least one add/remove array must contain an ID

addAgentIdslist of strings可选

Agent UUIDs to attach to this project. Each agent may be unassigned or already assigned to this project; assignment to another project returns entity_already_assigned.

addMemberIdslist of strings可选

Member UUIDs to attach to this project. Each member may be unassigned or already assigned to this project; assignment to another project returns entity_already_assigned.

removeAgentIdslist of strings可选

Agent UUIDs to detach from this project; agents assigned elsewhere are not changed.

removeMemberIdslist of strings可选

Member UUIDs to detach from this project; members assigned elsewhere are not changed.

响应

data: projectId, before, after

dataobject可选

错误

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