Help Center/ CodeArts Pipeline/ API Reference/ API/ Pipeline Management/ Querying the Status of All Notification Types for a Pipeline
Updated on 2025-12-04 GMT+08:00

Querying the Status of All Notification Types for a Pipeline

Function

This API is used to query the status of all notification types for a pipeline.

Calling Method

For details, see Calling APIs.

URI

GET /v5/{project_id}/api/pipeline-notices/{pipeline_id}/notice/status

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

Project ID. For details, see Obtaining a Project ID.

Constraints:

N/A

Value range:

The value consists of 32 characters, including digits and letters.

Default value:

N/A

pipeline_id

Yes

String

Definition:

Pipeline ID. Obtain the ID by calling the API for querying pipelines. pipelines.pipelineId indicates the pipeline ID.

Constraints:

N/A

Value range:

The value consists of 32 characters, including digits and letters.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

type

Integer

Definition:

Pipeline notification type.

Constraints:

N/A

Range:

  • 1: System messages.

  • 2: Email notifications.

  • 3: WeCom.

  • 4: DingTalk.

  • 5: Feishu.

  • 6: Webhooks.

Default value:

N/A

enabled

Boolean

Definition:

Whether to enable notifications.

Constraints:

N/A

Value range:

  • true: enable notifications.

  • false: disable notifications.

Default value:

N/A

project_switch

Boolean

Definition:

Whether to use project-level notification settings.

Constraints:

N/A

Value range:

  • true: Use project-level notification settings.

  • false: Use pipeline-level notification settings.

Default value:

N/A

can_open

Boolean

Definition:

Whether notifications can be enabled.

Constraints:

N/A

Value range:

  • true: enabled.

  • false: disabled.

Default value:

N/A

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_msg

String

Parameter description:

Error message.

Value range:

N/A

error_code

String

Parameter description:

Error code.

Value range:

N/A

Example Requests

GET https://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-notices/0747d5a7099e45f69dc1d099945909a9/notice/status

Example Responses

Status code: 200

OK

[ {
  "type" : 5,
  "enabled" : false,
  "project_switch" : false,
  "can_open" : true
}, {
  "type" : 3,
  "enabled" : false,
  "project_switch" : true,
  "can_open" : true
}, {
  "type" : 4,
  "enabled" : false,
  "project_switch" : true,
  "can_open" : true
}, {
  "type" : 1,
  "enabled" : false,
  "project_switch" : false,
  "can_open" : true
}, {
  "type" : 2,
  "enabled" : true,
  "project_switch" : false,
  "can_open" : true
} ]

Status Codes

Status Code

Description

200

OK

400

Bad request

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.