Help Center/ CodeArts Artifact/ API Reference/ API/ Repository Association/ Associating a Project with a Repository
Updated on 2023-12-28 GMT+08:00

Associating a Project with a Repository

Function

Associate a project with a repository.

URI

POST /cloudartifact/v5/maven/project/repository

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

project_id

No

String

Project ID.

ids

No

Array of strings

tab_id set.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

String

Result status.

trace_id

String

Request ID.

result

String

Returned result of the request. The return value varies according to the API.

Example Requests

Associate a project with a repository.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/maven/project/repository

{
  "project_id" : "e2ee90487d6349dd944a5767225f6f55",
  "ids" : [ "5a775fdcb14f4431b6c0015618140bc3_tab_maven2_23", "5a775fdcb14f4431b6c0015618140bc3_tab_maven2_120", "5a775fdcb14f4431b6c0015618140bc3_tab_maven2_201" ]
}

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143006-1701220262276-256",
  "result" : null
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.