curl --request PUT \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'LD-API-Version: <ld-api-version>' \
--data '
{
"releaseMethod": "progressive_release",
"progressiveRelease": {
"advancementMode": "manual",
"metrics": {
"key": {
"autoRollback": false,
"isGroup": true
}
},
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
},
"name": "Checkout flow rollout",
"description": "Standard rollout for checkout changes",
"version": 3
}
'import requests
url = "https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}"
payload = {
"releaseMethod": "progressive_release",
"progressiveRelease": {
"advancementMode": "manual",
"metrics": { "key": {
"autoRollback": False,
"isGroup": True
} },
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
},
"name": "Checkout flow rollout",
"description": "Standard rollout for checkout changes",
"version": 3
}
headers = {
"LD-API-Version": "<ld-api-version>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'LD-API-Version': '<ld-api-version>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
releaseMethod: 'progressive_release',
progressiveRelease: {
advancementMode: 'manual',
metrics: {key: {autoRollback: false, isGroup: true}},
randomizationUnit: 'user',
cleanupBehavior: 'remove_rules_and_update_default_rule',
phases: [
{
clauses: [
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
},
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
}
],
description: 'description',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
steps: [
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
},
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
}
]
},
{
clauses: [
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
},
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
}
],
description: 'description',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
steps: [
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
},
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
}
]
}
]
},
name: 'Checkout flow rollout',
description: 'Standard rollout for checkout changes',
version: 3
})
};
fetch('https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'releaseMethod' => 'progressive_release',
'progressiveRelease' => [
'advancementMode' => 'manual',
'metrics' => [
'key' => [
'autoRollback' => false,
'isGroup' => true
]
],
'randomizationUnit' => 'user',
'cleanupBehavior' => 'remove_rules_and_update_default_rule',
'phases' => [
[
'clauses' => [
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
],
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
]
],
'description' => 'description',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'steps' => [
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
],
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
]
]
],
[
'clauses' => [
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
],
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
]
],
'description' => 'description',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'steps' => [
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
],
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
]
]
]
]
],
'name' => 'Checkout flow rollout',
'description' => 'Standard rollout for checkout changes',
'version' => 3
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"LD-API-Version: <ld-api-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}"
payload := strings.NewReader("{\n \"releaseMethod\": \"progressive_release\",\n \"progressiveRelease\": {\n \"advancementMode\": \"manual\",\n \"metrics\": {\n \"key\": {\n \"autoRollback\": false,\n \"isGroup\": true\n }\n },\n \"randomizationUnit\": \"user\",\n \"cleanupBehavior\": \"remove_rules_and_update_default_rule\",\n \"phases\": [\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n },\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n }\n ]\n },\n \"name\": \"Checkout flow rollout\",\n \"description\": \"Standard rollout for checkout changes\",\n \"version\": 3\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("LD-API-Version", "<ld-api-version>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}")
.header("LD-API-Version", "<ld-api-version>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"releaseMethod\": \"progressive_release\",\n \"progressiveRelease\": {\n \"advancementMode\": \"manual\",\n \"metrics\": {\n \"key\": {\n \"autoRollback\": false,\n \"isGroup\": true\n }\n },\n \"randomizationUnit\": \"user\",\n \"cleanupBehavior\": \"remove_rules_and_update_default_rule\",\n \"phases\": [\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n },\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n }\n ]\n },\n \"name\": \"Checkout flow rollout\",\n \"description\": \"Standard rollout for checkout changes\",\n \"version\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["LD-API-Version"] = '<ld-api-version>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"releaseMethod\": \"progressive_release\",\n \"progressiveRelease\": {\n \"advancementMode\": \"manual\",\n \"metrics\": {\n \"key\": {\n \"autoRollback\": false,\n \"isGroup\": true\n }\n },\n \"randomizationUnit\": \"user\",\n \"cleanupBehavior\": \"remove_rules_and_update_default_rule\",\n \"phases\": [\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n },\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n }\n ]\n },\n \"name\": \"Checkout flow rollout\",\n \"description\": \"Standard rollout for checkout changes\",\n \"version\": 3\n}"
response = http.request(request)
puts response.read_body{
"releaseMethod": "progressive_release",
"createdAt": 6,
"default": true,
"progressiveRelease": {
"advancementMode": "manual",
"metrics": {
"key": {
"autoRollback": false,
"isGroup": true
}
},
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
},
"name": "name",
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"version": 0,
"key": "key",
"environmentKey": "environmentKey",
"updatedAt": 1
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Update a release plan
Replace a release plan’s configuration. This is a full replace, not a merge: the plan’s phases, steps, clauses, and metrics become exactly what the request specifies, and anything omitted is removed. The plan’s key and environment are immutable, and its version increments by 1 on every successful update. The request’s version is an optional optimistic lock: when present it must match the plan’s current version, and on mismatch the request is rejected with 409 and no changes are applied, meaning the plan was edited since it was read; get the plan again and retry with its current version. When omitted the update applies unconditionally to the plan currently holding the key. A release already started from the plan is not affected.
curl --request PUT \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'LD-API-Version: <ld-api-version>' \
--data '
{
"releaseMethod": "progressive_release",
"progressiveRelease": {
"advancementMode": "manual",
"metrics": {
"key": {
"autoRollback": false,
"isGroup": true
}
},
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
},
"name": "Checkout flow rollout",
"description": "Standard rollout for checkout changes",
"version": 3
}
'import requests
url = "https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}"
payload = {
"releaseMethod": "progressive_release",
"progressiveRelease": {
"advancementMode": "manual",
"metrics": { "key": {
"autoRollback": False,
"isGroup": True
} },
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": False,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
},
"name": "Checkout flow rollout",
"description": "Standard rollout for checkout changes",
"version": 3
}
headers = {
"LD-API-Version": "<ld-api-version>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'LD-API-Version': '<ld-api-version>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
releaseMethod: 'progressive_release',
progressiveRelease: {
advancementMode: 'manual',
metrics: {key: {autoRollback: false, isGroup: true}},
randomizationUnit: 'user',
cleanupBehavior: 'remove_rules_and_update_default_rule',
phases: [
{
clauses: [
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
},
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
}
],
description: 'description',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
steps: [
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
},
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
}
]
},
{
clauses: [
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
},
{
op: 'endsWith',
negate: false,
values: ['', ''],
contextKind: 'user',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
attribute: 'email'
}
],
description: 'description',
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
steps: [
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
},
{
allocation: 50000,
durationMillis: 3600000,
_id: '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
}
]
}
]
},
name: 'Checkout flow rollout',
description: 'Standard rollout for checkout changes',
version: 3
})
};
fetch('https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'releaseMethod' => 'progressive_release',
'progressiveRelease' => [
'advancementMode' => 'manual',
'metrics' => [
'key' => [
'autoRollback' => false,
'isGroup' => true
]
],
'randomizationUnit' => 'user',
'cleanupBehavior' => 'remove_rules_and_update_default_rule',
'phases' => [
[
'clauses' => [
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
],
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
]
],
'description' => 'description',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'steps' => [
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
],
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
]
]
],
[
'clauses' => [
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
],
[
'op' => 'endsWith',
'negate' => false,
'values' => [
'',
''
],
'contextKind' => 'user',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'attribute' => 'email'
]
],
'description' => 'description',
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91',
'steps' => [
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
],
[
'allocation' => 50000,
'durationMillis' => 3600000,
'_id' => '046b6c7f-0b8a-43b9-b35d-6489e6daee91'
]
]
]
]
],
'name' => 'Checkout flow rollout',
'description' => 'Standard rollout for checkout changes',
'version' => 3
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"LD-API-Version: <ld-api-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}"
payload := strings.NewReader("{\n \"releaseMethod\": \"progressive_release\",\n \"progressiveRelease\": {\n \"advancementMode\": \"manual\",\n \"metrics\": {\n \"key\": {\n \"autoRollback\": false,\n \"isGroup\": true\n }\n },\n \"randomizationUnit\": \"user\",\n \"cleanupBehavior\": \"remove_rules_and_update_default_rule\",\n \"phases\": [\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n },\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n }\n ]\n },\n \"name\": \"Checkout flow rollout\",\n \"description\": \"Standard rollout for checkout changes\",\n \"version\": 3\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("LD-API-Version", "<ld-api-version>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}")
.header("LD-API-Version", "<ld-api-version>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"releaseMethod\": \"progressive_release\",\n \"progressiveRelease\": {\n \"advancementMode\": \"manual\",\n \"metrics\": {\n \"key\": {\n \"autoRollback\": false,\n \"isGroup\": true\n }\n },\n \"randomizationUnit\": \"user\",\n \"cleanupBehavior\": \"remove_rules_and_update_default_rule\",\n \"phases\": [\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n },\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n }\n ]\n },\n \"name\": \"Checkout flow rollout\",\n \"description\": \"Standard rollout for checkout changes\",\n \"version\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/projects/{projectKey}/environments/{environmentKey}/release-plans/{releasePlanKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["LD-API-Version"] = '<ld-api-version>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"releaseMethod\": \"progressive_release\",\n \"progressiveRelease\": {\n \"advancementMode\": \"manual\",\n \"metrics\": {\n \"key\": {\n \"autoRollback\": false,\n \"isGroup\": true\n }\n },\n \"randomizationUnit\": \"user\",\n \"cleanupBehavior\": \"remove_rules_and_update_default_rule\",\n \"phases\": [\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n },\n {\n \"clauses\": [\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n },\n {\n \"op\": \"endsWith\",\n \"negate\": false,\n \"values\": [\n \"\",\n \"\"\n ],\n \"contextKind\": \"user\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"attribute\": \"email\"\n }\n ],\n \"description\": \"description\",\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"steps\": [\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n },\n {\n \"allocation\": 50000,\n \"durationMillis\": 3600000,\n \"_id\": \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n }\n ]\n }\n ]\n },\n \"name\": \"Checkout flow rollout\",\n \"description\": \"Standard rollout for checkout changes\",\n \"version\": 3\n}"
response = http.request(request)
puts response.read_body{
"releaseMethod": "progressive_release",
"createdAt": 6,
"default": true,
"progressiveRelease": {
"advancementMode": "manual",
"metrics": {
"key": {
"autoRollback": false,
"isGroup": true
}
},
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": [
"",
""
],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
},
"name": "name",
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"version": 0,
"key": "key",
"environmentKey": "environmentKey",
"updatedAt": 1
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Path Parameters
Body
The release plan's replacement configuration
Show child attributes
Show child attributes
{
"advancementMode": "manual",
"metrics": {
"key": { "autoRollback": false, "isGroup": true }
},
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
}
Optional. The plan version this request was based on, from a previous read. Plans start at version 1. When present it must match the plan's current version — on mismatch the request is rejected with 409 and no changes are applied, so a stale copy can't silently overwrite a concurrent edit. When omitted, the plan's version is not checked.
x >= 13
Response
Release plan updated successfully
Show child attributes
Show child attributes
{
"advancementMode": "manual",
"metrics": {
"key": { "autoRollback": false, "isGroup": true }
},
"randomizationUnit": "user",
"cleanupBehavior": "remove_rules_and_update_default_rule",
"phases": [
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
},
{
"clauses": [
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
},
{
"op": "endsWith",
"negate": false,
"values": ["", ""],
"contextKind": "user",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"attribute": "email"
}
],
"description": "description",
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"steps": [
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
{
"allocation": 50000,
"durationMillis": 3600000,
"_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
]
}