文档

GetWorkitemTimeTypeList - 获取工时类型列表

更新时间:

获取工时类型列表。

接口说明

获取工时类型列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /organization/{organizationId}/workitems/type/list

请求参数

名称类型必填描述示例值
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】

5ebbc0228123212b59xxxxx

返回参数

名称类型描述示例值
object

Schema of Response

requestIdstring

Id of the request

HC93CE1A-8D7A-13A9-8306-7465DE2E5C0F
errorMsgstring

错误信息

error
errorCodestring
  • 当 success 为 false,返回业务错误码;

  • 当 success 为 true,返回空值。

Invalid.IdNotFound
successstring

true 成功 false 失败

true
timeTypeobject []

时间类型

identifierstring

工时类型标识符

67fb001005aac8d3d2a3372416
namestring

状态名

displayNamestring

展示名称

deploy
descriptionstring

描述

描述文案
positionlong

展示位置

1

示例

正常返回示例

JSON格式

{
  "requestId": "HC93CE1A-8D7A-13A9-8306-7465DE2E5C0F",
  "errorMsg": "error",
  "errorCode": "Invalid.IdNotFound",
  "success": "true",
  "timeType": [
    {
      "identifier": "67fb001005aac8d3d2a3372416",
      "name": "",
      "displayName": "deploy",
      "description": "描述文案",
      "position": 1
    }
  ]
}

错误码

HTTP status code错误码错误信息描述
400Openapi.RequestErrorrequest errorOpenAPI请求数据错误
403Operate.NoPermissionNoPermission没有权限

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈