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,
|
projectId: string,
|
||||||
environment: string,
|
environment: string,
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
const requestId = 'createReleasePlanTemplate';
|
const requestId = 'addReleasePlanToFeature';
|
||||||
const path = `api/admin/projects/${projectId}/features/${featureName}/environments/${environment}/release_plans/${releasePlanTemplateId}`;
|
const path = `api/admin/projects/${projectId}/features/${featureName}/environments/${environment}/release_plans`;
|
||||||
const req = createRequest(
|
const req = createRequest(
|
||||||
path,
|
path,
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({}),
|
body: JSON.stringify({ templateId: releasePlanTemplateId }),
|
||||||
},
|
},
|
||||||
requestId,
|
requestId,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user