Okapi Okapi

POST /api/v2/projects/{}/environments/{}/experiments/{}/iterations → endpoint removal

LaunchDarkly API

Deprecated, no date

The POST /api/v2/projects/{}/environments/{}/experiments/{}/iterations endpoint has been deprecated without a shutdown date. The provider states that this endpoint will be removed in a future version. Calls made to this route after its eventual removal will fail.


Calls it hits

  • POST /api/v2/projects/{}/environments/{}/experiments/{}/iterations

What to use instead of these calls

Use PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey} instead, supplying the updateExperimentFields and saveAndStartNewIteration instructions.

In LaunchDarkly API's words

This endpoint will be removed in a future version. Use the `updateExperimentFields` and `saveAndStartNewIteration` instructions on [Update experiment](https://launchdarkly.com/docs/api/experiments/patch-experiment) instead.

LaunchDarkly API, Announcement

Facts

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

Questions

When does this change take effect?

LaunchDarkly API deprecated POST /api/v2/projects/{}/environments/{}/experiments/{}/iterations without giving a shutdown date yet.

Do these calls still work?

Yes, they still work: LaunchDarkly 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.


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