Release Templates
Updates a release template by its id.
Enterprise feature
Finds and updates a release template by the provided id. Will delete existing milestones and create new ones from the body
put/api/admin/release-plan-templates/{templateId}
Path parameters
templateIdstring required
Response
#/components/schemas/releasePlanTemplateSchema
Example response
{
"id": "01JB9GGTGQYEQ9D40R17T3YVW2",
"discriminator": "template",
"name": "My release plan",
"description": "This is my release plan",
"project": "my-project",
"createdByUserId": 53,
"createdAt": "2022-01-01T00:00:00Z",
"milestones": [
{
"id": "01JB9GGTGQYEQ9D40R17T3YVW1",
"name": "My milestone",
"sortOrder": 1,
"releasePlanDefinitionId": "01JB9GGTGQYEQ9D40R17T3YVW2",
"startedAt": "2024-01-01T00:00:00.000Z",
"transitionCondition": {
"intervalMinutes": 30
},
"progressionExecutedAt": "2024-01-01T00:00:00.000Z",
"pausedAt": "2024-01-01T00:00:00.000Z",
"strategies": [
{
"id": "01JB9GGTGQYEQ9D40R17T3YVW3",
"milestoneId": "01JB9GGTGQYEQ9D40R17T3YVW1",
"sortOrder": 9999,
"title": "Gradual Rollout 25-Prod",
"name": "flexibleRollout",
"strategyName": "flexibleRollout",
"constraints": [
{
"values": [
"1",
"2"
],
"inverted": false,
"operator": "IN",
"contextName": "appName",
"caseInsensitive": false
}
],
"variants": [
{
"name": "blue_group",
"weightType": "fix",
"stickiness": "custom.context.field",
"payload": {
"type": "json",
"value": "{\"color\": \"red\"}"
}
}
],
"segments": [
1,
2
]
}
]
}
],
"archivedAt": "2022-01-01T00:00:00Z"
}