Skip to content

GitHub: Copilot schemas

9 GitHub schemas with complete fields and constraints.

← Copilot operations · All schemas

Get Copilot content exclusion rules for an organization — response body

FieldTypePresenceDescription and constraints
$objectRootList all Copilot Content Exclusion rules for an organization.
Additional keys: see wildcard field
$.*arrayAdditional keys
$.*[]stringEach itemThe path to the file that will be excluded.

Get Copilot seat assignment details for a user — response body

FieldTypePresenceDescription and constraints
$objectRootInformation about a Copilot Business seat assignment for a user, team, or organization.
Additional keys: not allowed
assigneeModelOptionalExpand Get an issue — response body — user
assigning_teamJSONOptional
assigning_team (anyOf 1)JSONAlternativeThe team through which the assignee is granted access to GitHub Copilot, if applicable.
assigning_team (anyOf 1) (anyOf 1)ModelAlternativeExpand List teams — response body — item
assigning_team (anyOf 1) (anyOf 2)ModelAlternativeExpand Get Copilot seat assignment details for a user — response body — assigning team value Enterprise Team
assigning_team (anyOf 2)nullAlternative
created_atstringRequired within parentTimestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format.
Format: date-time
last_activity_atJSONOptional
last_activity_at (anyOf 1)stringAlternativeTimestamp of user's last GitHub Copilot activity, in ISO 8601 format.
Format: date-time
last_activity_at (anyOf 2)nullAlternative
last_activity_editorJSONOptional
last_activity_editor (anyOf 1)stringAlternativeLast editor that was used by the user for a GitHub Copilot completion.
last_activity_editor (anyOf 2)nullAlternative
last_authenticated_atJSONOptional
last_authenticated_at (anyOf 1)stringAlternativeTimestamp of the last time the user authenticated with GitHub Copilot, in ISO 8601 format.
Format: date-time
last_authenticated_at (anyOf 2)nullAlternative
organizationModelOptionalExpand Get Copilot seat assignment details for a user — response body — organization
pending_cancellation_dateJSONOptional
pending_cancellation_date (anyOf 1)stringAlternativeThe pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.
Format: date
pending_cancellation_date (anyOf 2)nullAlternative
plan_typestringOptionalThe Copilot plan of the organization, or the parent enterprise, when applicable.
Known values: business, enterprise, unknown, access
updated_atstringOptional**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.
Format: date-time

Referenced models: Get Copilot seat assignment details for a user — response body — assigning team value Enterprise Team, Get Copilot seat assignment details for a user — response body — organization, Get an issue — response body — user, List teams — response body — item

Get Copilot seat assignment details for a user — response body — assigning team value Enterprise Team

FieldTypePresenceDescription and constraints
$objectRootGroup of enterprise owners and/or members
created_atstringRequired within parentFormat: date-time
descriptionstringOptional
group_idJSONRequired within parent
group_id (anyOf 1)stringAlternative
group_id (anyOf 2)nullAlternative
group_nameJSONOptional
group_name (anyOf 1)stringAlternativeRetired: this field will not be returned with GHEC enterprise teams.
group_name (anyOf 2)nullAlternative
html_urlstringRequired within parentFormat: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeFormat: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
members_urlstringRequired within parent
namestringRequired within parent
notification_settingstringOptionalWhether team members will receive notifications when the team is mentioned.
Known values: notifications_enabled, notifications_disabled
organization_selection_typestringOptional
slugstringRequired within parent
sync_to_organizationsstringOptionalRetired: this field will not be returned with GHEC enterprise teams.
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentFormat: uri

Get Copilot seat assignment details for a user — response body — organization

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Get Copilot seat assignment details for a user — response body — organization A Git Hub organization
$ (anyOf 2)nullAlternative

Referenced models: Get Copilot seat assignment details for a user — response body — organization A Git Hub organization

Get Copilot seat assignment details for a user — response body — organization A Git Hub organization

FieldTypePresenceDescription and constraints
$objectRootA GitHub organization.
avatar_urlstringRequired within parent
descriptionJSONRequired within parent
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative
events_urlstringRequired within parentFormat: uri
hooks_urlstringRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
issues_urlstringRequired within parent
loginstringRequired within parent
members_urlstringRequired within parent
node_idstringRequired within parent
public_members_urlstringRequired within parent
repos_urlstringRequired within parentFormat: uri
urlstringRequired within parentFormat: uri

Get Copilot seat information and settings for an organization — response body

FieldTypePresenceDescription and constraints
$objectRootInformation about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.
Additional keys: allowed
clistringOptionalThe organization policy for allowing or disallowing Copilot CLI.
Known values: enabled, disabled, unconfigured
ide_chatstringOptionalThe organization policy for allowing or disallowing Copilot Chat in the IDE.
Known values: enabled, disabled, unconfigured
plan_typestringOptionalThe Copilot plan of the organization, or the parent enterprise, when applicable.
Known values: business, enterprise, access
platform_chatstringOptionalThe organization policy for allowing or disallowing Copilot features on GitHub.com.
Known values: enabled, disabled, unconfigured
public_code_suggestionsstringRequired within parentThe organization policy for allowing or blocking suggestions matching public code (duplication detection filter).
Known values: allow, block, unconfigured
seat_breakdownModelRequired within parentExpand Get Copilot seat information and settings for an organization — response body — seat breakdown
seat_management_settingstringRequired within parentThe mode of assigning new seats.
Known values: assign_all, assign_selected, disabled, unconfigured

Referenced models: Get Copilot seat information and settings for an organization — response body — seat breakdown

Get Copilot seat information and settings for an organization — response body — seat breakdown

FieldTypePresenceDescription and constraints
$objectRootThe breakdown of Copilot Business seats for the organization.
active_this_cycleJSONOptional
active_this_cycle (anyOf 1)integerAlternativeThe number of seats that have used Copilot during the current billing cycle.
active_this_cycle (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
added_this_cycleJSONOptional
added_this_cycle (anyOf 1)integerAlternativeSeats added during the current billing cycle.
added_this_cycle (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
inactive_this_cycleJSONOptional
inactive_this_cycle (anyOf 1)integerAlternativeThe number of seats that have not used Copilot during the current billing cycle.
inactive_this_cycle (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pending_cancellationJSONOptional
pending_cancellation (anyOf 1)integerAlternativeThe number of seats that are pending cancellation at the end of the current billing cycle.
pending_cancellation (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pending_invitationJSONOptional
pending_invitation (anyOf 1)integerAlternativeThe number of users who have been invited to receive a Copilot seat through this organization.
pending_invitation (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
totalJSONOptional
total (anyOf 1)integerAlternativeThe total number of seats being billed for the organization as of the current billing cycle.
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get Copilot users usage metrics for a specific day — response body

FieldTypePresenceDescription and constraints
$objectRootLinks to download the Copilot usage metrics report for an enterprise/organization for a specific day.
download_linksarrayRequired within parentThe URLs to download the Copilot usage metrics report for the enterprise/organization for the specified day.
download_links[]stringEach itemFormat: uri
report_daystringRequired within parentThe day of the report in `YYYY-MM-DD` format.
Format: date

Get Copilot users usage metrics — response body

FieldTypePresenceDescription and constraints
$objectRootLinks to download the latest Copilot usage metrics report for an enterprise/organization.
download_linksarrayRequired within parentThe URLs to download the latest Copilot usage metrics report for the enterprise/organization.
download_links[]stringEach itemFormat: uri
report_end_daystringRequired within parentThe end date of the report period in `YYYY-MM-DD` format.
Format: date
report_start_daystringRequired within parentThe start date of the report period in `YYYY-MM-DD` format.
Format: date

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.