curl --request POST \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/duplicate \
--header 'Authorization: Bearer <token>'
{
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"photo": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<any>"
},
"blocks": {},
"slug": "<string>",
"id": "<string>",
"labels": [
"<string>"
],
"customDomains": [
"<string>"
],
"registerWorkspace": true,
"repositories": {},
"secrets": {
"schema": {}
},
"events": {
"mapping": {},
"types": {}
}
}
Duplicate this workspace version to a new workspace
curl --request POST \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/duplicate \
--header 'Authorization: Bearer <token>'
{
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"photo": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<any>"
},
"blocks": {},
"slug": "<string>",
"id": "<string>",
"labels": [
"<string>"
],
"customDomains": [
"<string>"
],
"registerWorkspace": true,
"repositories": {},
"secrets": {
"schema": {}
},
"events": {
"mapping": {},
"types": {}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success Response
The response is of type object
.
Was this page helpful?