Question about 2026-03-10 REST API breaking changes: Deprecate support for the beta media type #189441
-
Select Topic AreaQuestion BodyHi! Regarding the recent announcement about the 2026-03-10 version of the REST API, could you clarify what this section of the breaking changes means?
I expected that the $ curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://v-api-github-com.adclosenn.dev/repos/canonical/postgresql-operator/pulls/1 | jq .user
{
"login": "marceloneppel",
"id": 26063517,
"node_id": "MDQ6VXNlcjI2MDYzNTE3",
"avatar_url": "https://v-avatars-githubusercontent-com.adclosenn.dev/u/26063517?v=4",
"gravatar_id": "",
"url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel",
"html_url": "https://github.com/marceloneppel",
"followers_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/followers",
"following_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/following{/other_user}",
"gists_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/gists{/gist_id}",
"starred_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/starred{/owner}{/repo}",
"subscriptions_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/subscriptions",
"organizations_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/orgs",
"repos_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/repos",
"events_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/events{/privacy}",
"received_events_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
$ curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://v-api-github-com.adclosenn.dev/repos/canonical/postgresql-operator/pulls/1 | jq .owner
null2026-03-10 $ curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2026-03-10" https://v-api-github-com.adclosenn.dev/repos/canonical/postgresql-operator/pulls/1 | jq .user
{
"login": "marceloneppel",
"id": 26063517,
"node_id": "MDQ6VXNlcjI2MDYzNTE3",
"avatar_url": "https://v-avatars-githubusercontent-com.adclosenn.dev/u/26063517?v=4",
"gravatar_id": "",
"url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel",
"html_url": "https://github.com/marceloneppel",
"followers_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/followers",
"following_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/following{/other_user}",
"gists_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/gists{/gist_id}",
"starred_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/starred{/owner}{/repo}",
"subscriptions_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/subscriptions",
"organizations_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/orgs",
"repos_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/repos",
"events_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/events{/privacy}",
"received_events_url": "https://v-api-github-com.adclosenn.dev/users/marceloneppel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
}
$ curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2026-03-10" https://v-api-github-com.adclosenn.dev/repos/canonical/postgresql-operator/pulls/1 | jq .owner
nullI'm struggling to understand what that section of the documentation is saying/what the breaking change is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This section of the breaking-changes documentation is easy to misinterpret because it does not mean that the What the note is referring to is the removal of behavior that only occurred when clients used the old Key points:
So in practice:
That’s why your responses look identical across the two API versions. |
Beta Was this translation helpful? Give feedback.
Hey @carlcsaposs-canonical,
This section of the breaking-changes documentation is easy to misinterpret because it does not mean that the
userfield in the pull request response is being replaced withowner.What the note is referring to is the removal of behavior that only occurred when clients used the old
betamedia type (for exampleapplication/vnd.github.beta+json). That media type altered some response payloads compared to the standard API format.Key points:
The change only affects the deprecated beta media type
The
user → o…