Help Center/ CodeArts Repo/ API Reference/ APIs/ Group/ Querying Repository Groups with Create Permission in a Project
Updated on 2025-03-28 GMT+08:00

Querying Repository Groups with Create Permission in a Project

Function

Query repository groups with the create permission in a project.

URI

GET /v4/{project_id}/manageable-groups

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

scope

No

String

Resource type. This value can be group (repository group) or repository.

offset

No

Integer

Offset.

limit

No

Integer

Limit.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

full_name

String

Repository group full name.

id

Integer

Repository group ID.

name

String

Repository group name.

Status code: 401

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Response status code.

error_msg

String

Response error information.

Example Requests

GET https://{endpoint}/v4/{project_id}/manageable-groups

Example Responses

Status code: 200

OK
{
    [
       "full_name": " TG2 / dmz1",
       "id": 2111688350,
       "name": "dmz1"
    ]
}

Status code: 401

Unauthorized
{
   "error_code": "DEV.00000003"
   "error_msg": "Authentication information expired"
}

Status Code

Status Code

Description

200

OK

401

Unauthorized

Error code.

See Error Codes.