Home / Servers / GitHub API / campaigns_update_campaign

Update a campaign

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Update a campaign Updates a campaign in an organization. The authenticated user must be an owner or security manager for the organization to use this endpoint. OAuth app tokens and personal access tokens (classic)… [PATCH /orgs/{org}/campaigns/{campaign_number}]

Name on the gateway: github_api__campaigns_update_campaign · may change things.

Parameters

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
campaign_number requiredintegerThe campaign number.
namestringThe name of the campaign
descriptionstringA description for the campaign
managersarrayThe logins of the users to set as the campaign managers. At this time, only a…
team_managersarrayThe slugs of the teams to set as the campaign managers.
ends_atstringThe end date and time of the campaign, in ISO 8601 format':'…
contact_linkstringThe contact link of the campaign. Must be a URI.
stateopen | closedIndicates whether a campaign is open or closed

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__campaigns_update_campaign",
  "arguments": {
    "org": "…",
    "campaign_number": 0
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the update a campaign tool with org set to ….

More from GitHub API