mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
chore: addReleasePlan api hook use template id in payload (#8801)
This commit is contained in:
parent
4234020b8d
commit
5406d4d8d5
@ -11,13 +11,13 @@ export const useReleasePlansApi = () => {
|
||||
projectId: string,
|
||||
environment: string,
|
||||
): Promise<void> => {
|
||||
const requestId = 'createReleasePlanTemplate';
|
||||
const path = `api/admin/projects/${projectId}/features/${featureName}/environments/${environment}/release_plans/${releasePlanTemplateId}`;
|
||||
const requestId = 'addReleasePlanToFeature';
|
||||
const path = `api/admin/projects/${projectId}/features/${featureName}/environments/${environment}/release_plans`;
|
||||
const req = createRequest(
|
||||
path,
|
||||
{
|
||||
method: 'POST',
|
||||
body: JSON.stringify({}),
|
||||
body: JSON.stringify({ templateId: releasePlanTemplateId }),
|
||||
},
|
||||
requestId,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user