v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Add an exclude path to a code repo

Add an exclude path to a code repo

post/repositories/code/{code_repo_id}/exclude-path

Path parameters

code_repo_idinteger required

The repository ID

Request body

pathstring required

The path to exclude

reasonstring

Optional reason for excluding this path

Example request

{
  "path": "/api/v1/",
  "reason": "This is legacy code and is no in use or maintained."
}

Response

The code repository exclude path has been added.

excluded_path_idinteger

The internal ID of the excluded path

Example response

{
  "excluded_path_id": 456
}