Runrunit

Interact with the Runrunit API

Projects → Clone

AI-generated

Summary

Clone a project in Runrunit by specifying the project ID and a JSON payload that defines the new project details, such as its name. Optionally preview the curl command generated for the API request instead of executing it.

Inputs

  • Project ID (required) — The ID of the existing project to clone.
  • Clone Object (JSON) — A JSON object specifying details of the new project, typically nested under a 'new_project' key, e.g., {"new_project":{"name":"Cloned Project"}}.
  • Mode — Choose whether to execute the API request ('execute') or only preview the curl command ('preview'). Defaults to 'execute'.

Output shape

a JSON object representing the cloned project details as returned by the Runrunit API

The output shape corresponds to the API response for cloning a project. If 'Mode' is set to 'preview', no API call is made and instead the generated curl command string is returned.

Links

Discussion