feat(editor): Add move resources option to workflows and credentials on (#9654)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user