remagicaDocs home
API referenceProjects

Copy a shared project

POST
/shared-projects/{workflowId}/copies

Needs a key withprojects:share

Makes a copy of a shared project (public, or one in your workspace) in your workspace's top level: its canvas and settings, with files it imports copied over. Results and run history stay with the original.

Requires scope projects:share.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Path Parameters

workflowId*string
Length1 <= length <= 128

Response Body

The copy.

application/json
  1. response
description*string
folderId*string|null
id*string
name*string
visibility*string

personal: only its creator lists it. team: the whole workspace. public: the workspace, and anyone with its share link can view it read-only and make a copy.

Value in"personal""team""public"
Example Request
curl -X POST 'https://api.remagica.com/api/v1/shared-projects/cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05/copies'
Example Response
{  "description": "Product shots for the autumn campaign.",  "folderId": "899433f8-5b3d-4f60-8e2a-1d9c6b4f7e05",  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "name": "Autumn campaign",  "visibility": "personal"}