Skip to content

[IR-4341] Fix Content-Type for JSON:API compliance#9

Merged
kwent merged 1 commit intomasterfrom
feature/ir-4341-fix-content-type-json-api
Mar 4, 2026
Merged

[IR-4341] Fix Content-Type for JSON:API compliance#9
kwent merged 1 commit intomasterfrom
feature/ir-4341-fix-content-type-json-api

Conversation

@kwent
Copy link
Member

@kwent kwent commented Mar 4, 2026

Summary

  • Changes Content-Type header from application/json to application/vnd.api+json for all API requests
  • The Rootly API now requires the JSON:API Content-Type for orgs created after 2026-01-01, returning HTTP 415 for the old header
  • Updated all 10 occurrences in client.go

Linear Issue

https://linear.app/rootly/issue/IR-4341

Test Plan

  • All existing tests pass (tests already used application/vnd.api+json)
  • Manual test: rootly incidents list with a new org (created after 2026-01-01)
  • Manual test: rootly incidents list with an existing org (backwards compatible)

The Rootly API now requires `application/vnd.api+json` Content-Type
for orgs created after 2026-01-01, returning 415 Unsupported Media
Type for the old `application/json` header.

Fixes IR-4341
@kwent kwent merged commit 355b61e into master Mar 4, 2026
7 checks passed
@kwent kwent deleted the feature/ir-4341-fix-content-type-json-api branch March 4, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants