Help Center/ CodeArts Pipeline/ API Reference/ API/ GitCode Pipeline/ Updating the GitCode pipeline action
Updated on 2025-09-08 GMT+08:00

Updating the GitCode pipeline action

Function

This API is used to update the GitCode pipeline action.

Calling Method

For details, see Calling APIs.

URI

POST /v6/{domain_id}/api/pac/pipelines/actions/yml-register

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Definition:

Tenant ID.

Constraints:

N/A

Value range:

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

Default value:

N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

yaml_file_list

No

Array of ActionsWorkflowYamlChangedDTO objects

Definition:

Updated action details.

Value range:

N/A

Table 3 ActionsWorkflowYamlChangedDTO

Parameter

Mandatory

Type

Description

type

No

String

Definition:

Operation type.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

https_url

No

String

Definition:

Code source address.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

repo_id

No

String

Definition:

Repo code repository ID.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

old_file_path

No

String

Definition:

Path of the old file.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

new_file_path

No

String

Definition:

Path of the new file.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

file_content

No

String

Definition:

File details.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

encoding

No

String

Definition:

File code.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

default_branch

No

String

Definition:

Default branch of the code source.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

file_commit_id

No

String

Definition:

File submission record ID.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

success

Boolean

Definition:

Whether the calling is successful.

Value range:

  • true: The calling is successful.

  • false: The calling fails.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.