Workspace Templates
You can duplicate a workspace template within a project with the POST /workspace-templates/{companyTemplateId}/use
endpoint.
This call is asynchronous, meaning the response will only include a "duplication_request_id
". You can use this ID to track the duplication process with the GET /design-duplication-requests/{duplicateRequestId
polling endpoint.
Duplicate a workspace template into a project. This operation is asynchronous.
Use the returned duplication_request_id
to track the duplication progress
with the polling endpoint.
Unique identifier (UUID) of the workspace template to duplicate
0c967bd0-4137-4690-ad70-249aa021c68b
Target project ID where the template will be duplicated
d59adee9-4867-11f0-96f2-0a00d9eb8f78
Optional custom name for the duplicated template
My Custom Template
POST /workspace-templates/{companyTemplateId}/use HTTP/1.1
Host: api.abyssale.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"project_id": "d59adee9-4867-11f0-96f2-0a00d9eb8f78"
}
{
"duplication_request_id": "40c32a4e-4869-11f0-96f2-0a00d9eb8f78"
}
Duplication Request Polling - Propress check endpoint
You can poll the following endpoint to retrieve the progress status of a duplication request.
Poll the status of a template duplication request. Use this endpoint to track the progress of an asynchronous duplication operation.
Unique identifier (UUID) of the duplication request
40c32a4e-4869-11f0-96f2-0a00d9eb8f78
GET /design-duplication-requests/{duplicateRequestId} HTTP/1.1
Host: api.abyssale.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"request_id": "40c32a4e-4869-11f0-96f2-0a00d9eb8f78",
"status": "COMPLETED",
"created_at_ts": 1749827734,
"completed_at_ts": 1749827736,
"errored_at_ts": null,
"target_project": {
"id": "d59adee9-4867-11f0-96f2-0a00d9eb8f78",
"name": "HTML5 Tests",
"created_at_ts": 1749827125
},
"designs": [
{
"original_design_id": "0c967bd0-4137-4690-ad70-249aa021c68b",
"target_design_id": "afb1a61a-6c50-4bc3-a49b-3381822d4e81",
"target_design_name": "New Design name"
}
]
}
Last updated