Add an exclude path to a code repo

Add an exclude path to a code repo

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

Request

  • Base URL
    https://app.aikido.dev/api/public/v1
  • URL
    https://app.aikido.dev/api/public/v1/repositories/code/{code_repo_id}/exclude-path
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://app.aikido.io/api/oauth/token scopes: repositories:write

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
}

Changes

No recorded changes to this operation across all 1 revision of this API.