feat(editor): Add move resources option to workflows and credentials on (#9654)

This commit is contained in:
Csaba Tuncsik
2024-06-11 14:21:16 +02:00
committed by GitHub
parent dda7901398
commit bc35e8c33d
22 changed files with 960 additions and 495 deletions

View File

@@ -14,3 +14,13 @@ export async function setCredentialSharedWith(
data as unknown as IDataObject,
);
}
export async function moveCredentialToProject(
context: IRestApiContext,
id: string,
destinationProjectId: string,
): Promise<void> {
return await makeRestApiRequest(context, 'PUT', `/credentials/${id}/transfer`, {
destinationProjectId,
});
}