Okapi Okapi

Knock API PUT /v1/users/{id}/preferences/{id}/* endpoint removal

Deprecated, no dateSubscribe to Knock APIShare

Knock deprecated the PUT /v1/users/{id}/preferences/{id}/* endpoint without a shutdown date. The endpoint updates channel types in a specific user preference set, but calls to it will eventually fail. Developers using this path should prepare for its removal.


Calls it hits

  • PUT /v1/users/{id}/preferences/{id}/*

What to use instead of these calls

Set the whole preference set using PUT /v1/users/{user_id}/preferences/{id} with channel_types, categories, and workflows in the request body.

In Knock API's words

Updates the channel types in a specific user preference set. This operation is deprecated.

Knock API, Announcement

Facts

API
Knock API api.knock.app
Kind
Endpoint removal
Takes effect
No date given yet
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against Knock API's own pages

Questions

When does this change take effect?

Knock API deprecated PUT /v1/users/{id}/preferences/{id}/* without giving a shutdown date yet.

Do these calls still work?

Yes, they still work: Knock API has not given a shutdown date yet.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from Knock API 1

  1. No date PUT /v1/objects/{id}/{id}/preferences/{id}/categories/{id}Endpoint removal Deprecated, no date

Is your code calling this?

Okapi finds the calls this change hits in your repo and opens the pull request with the fix.

Add to GitHub

Get notifications

Subscribe to Knock API

Hear about each breaking change Knock API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Knock API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.