Skip to content

创建一个类别​

POST
/v2/categories
  • 用于创建一个类别。

  • 需通过 entity_type 指定类别所属实体类型。

授权

企业令牌
企业令牌获取流程
令牌 URLhttps://{rest_api_root}/v1/auth/token
作用域
  • 依赖 entity_type 对应的作用域
或
用户令牌
用户令牌获取流程
授权 URLhttps://{oauth2_root}/authorize
令牌 URLhttps://{rest_api_root}/v1/auth/token
作用域
  • 依赖 entity_type 对应的作用域

请求体​

application/json

类别所属实体类型。例如:

  • 在 entity_type 为 sprint 时,创建迭代的类别,此时要求作用域包括 pcp:write:pjm:sprint
有效值"sprint""release""testplan""project""library""product"

类别所在的产品、项目或测试库的 id。仅 entity_type 为 sprint、release 或 testplan 时有效且必填。

类别的名称。

类别所属分组 id。仅 entity_type 为 sprint、release 或 testplan 时有效。

响应​

响应示例:

application/json

类别的 id。

类别的地址。

类别所在的产品、项目或测试库的引用结构数据。仅 entity_type 为 sprint、release 或 testplan 时返回。

类别的名称。

所属分组的引用结构数据。

示例​

举报邮箱:abuse@worktile.com