apicheats.dev Cheat sheet Raw .md
POST

Try POST /orgs/{org}/code-security/configurations/{configuration_id}/attach — GitHub API

GitHub playground

Attach a configuration to repositories

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

2 body fields
  • scope · required · string — The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`
  • selected_repository_ids · optional · integer[] — An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.