apicheats.dev Cheat sheet Raw .md
POST

Try POST /orgs/{org}/campaigns — GitHub API

GitHub playground

Create a campaign for an organization

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

8 body fields
  • name · required · string — The name of the campaign
  • description · required · string — A description for the campaign
  • managers · optional · string[] — The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.
  • team_managers · optional · string[] — The slugs of the teams to set as the campaign managers.
  • ends_at · required · string — The end date and time of the campaign. The date must be in the future.
  • contact_link · optional · string — The contact link of the campaign. Must be a URI.
  • code_scanning_alerts · optional · object[] — The code scanning alerts to include in this campaign
  • generate_issues · optional · boolean — If true, will automatically generate issues for the campaign. The default is false.