Skip to content

GitHub: Campaigns schemas

1 GitHub schema with complete fields and constraints.

← Campaigns operations · All schemas

Update a campaign — response body

FieldTypePresenceDescription and constraints
$objectRootThe campaign metadata and alert stats.
alert_statsobjectOptionalAdditional keys: not allowed
alert_stats.closed_countJSONRequired within parent
alert_stats.closed_count (anyOf 1)integerAlternativeThe number of closed alerts
alert_stats.closed_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
alert_stats.in_progress_countJSONRequired within parent
alert_stats.in_progress_count (anyOf 1)integerAlternativeThe number of in-progress alerts
alert_stats.in_progress_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
alert_stats.open_countJSONRequired within parent
alert_stats.open_count (anyOf 1)integerAlternativeThe number of open alerts
alert_stats.open_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
closed_atJSONOptional
closed_at (anyOf 1)stringAlternativeThe date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.
Format: date-time
closed_at (anyOf 2)nullAlternative
contact_linkJSONRequired within parent
contact_link (anyOf 1)stringAlternativeThe contact link of the campaign.
Format: uri
contact_link (anyOf 2)nullAlternative
created_atstringRequired within parentThe date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
Format: date-time
descriptionstringRequired within parentThe campaign description
ends_atstringRequired within parentThe date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
Format: date-time
managersarrayRequired within parentThe campaign managers
managers[]ModelEach itemExpand List users — response body — item
namestringOptionalThe campaign name
numberJSONRequired within parent
number (anyOf 1)integerAlternativeThe number of the newly created campaign
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
published_atstringOptionalThe date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
Format: date-time
statestringRequired within parentIndicates whether a campaign is open or closed
Known values: open, closed
team_managersarrayOptionalThe campaign team managers
team_managers[]ModelEach itemExpand List teams — response body — item
updated_atstringRequired within parentThe date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
Format: date-time

Referenced models: List users — response body — item, List teams — response body — item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.