Update repository path limitation for a team

Update the path limitations for a repository that is already linked to a team. This works for both manually created and imported teams (e.g. GitHub teams), and does not change which resources are linked to the team.

post/teams/{team_id}/updateRepoPathLimitation

Request

  • Base URL
    https://app.aikido.dev/api/public/v1
  • URL
    https://app.aikido.dev/api/public/v1/teams/{team_id}/updateRepoPathLimitation
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://app.aikido.io/api/oauth/token scopes: teams:write

Path parameters

team_idinteger required

Unique ID of the team

Request body

repo_idinteger required

The id of a repository already linked to the team.

Example request

{
  "repo_id": 1,
  "repo_path_limitation": {
    "limitation_type": "include",
    "paths": [
      "/client/",
      "/tests/client/"
    ]
  }
}

Response

The repository path limitation has successfully been updated

statusstring

ok indicating success

Example response

{
  "status": "ok"
}

Changes

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