GetWorkitemTimeTypeList

Updated at:

Retrieves a list of time types for work items.

Operation description

Retrieves a list of time types for work items.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. You can obtain the ID from the URL of your organization page in Alibaba Cloud DevOps. The URL is in the format https://devops.aliyun.com/organization/{organizationId}.

5ebbc0228123212b59xxxxx

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

The response object.

requestId

string

The request ID.

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

errorMsg

string

The error message.

error

errorCode

string

  • Returns the business error code if success is false.

  • Empty if success is true.

Invalid.IdNotFound

success

string

Indicates if the request succeeded (true) or failed (false).

true

timeType

array<object>

A list of the returned time types.

object

An object representing a single time type.

identifier

string

The identifier of the time type.

67fb001005aac8d3d2a3372416

name

string

The name of the time type.

displayName

string

The display name.

deploy

description

string

The description.

描述文案

position

integer

The display position.

1

Examples

Success response

JSON format

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

Error codes

HTTP status code

Error code

Error message

Description

400 Openapi.RequestError request error
403 Operate.NoPermission NoPermission You are not authorized to perform this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.