Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

POST /experimental/project/{projectID}/copy

POST/experimental/project/{projectID}/copy
Path parameters
projectIDstringrequired
Query parameters
locationobject | any
Request body
requiredapplication/json
strategystringrequired
directorystringrequired
namestring
Responses
200ProjectCopy.Copy
directorystringrequired
400ProjectCopyError | InvalidRequestError
Any of:
ProjectCopyError
namestringrequired
Allowed:ProjectCopyError
dataobjectrequired
Show properties
messagestringrequired
forceRequiredboolean | any
Show properties
Any of:
boolean
boolean
any
any
InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
Request
curl -X POST "/experimental/project/string/copy" \
  -H "Content-Type: application/json" \
  -d '{
  "strategy": "string",
  "directory": "string",
  "name": "string"
}'
Response
{
  "directory": "string"
}