Hi,
I have upload zip file in Design Manager using following CMS Source Code API.
Upload Zip file in Desing Manager
[POST] {{baseUrl}}/cms/v3/source-code/published/content/api-test-folder/theme-folder.zip
[FORM-DATA] file: <<select zip file here>>
Above API give response
{
"id": "/api-test-folder/theme-folder.zip",
"name": "base.css",
"folder": false,
"children": null,
"updatedAt": 1723639888118,
"createdAt": 0,
"archivedAt": null
}
File uploaded successfully and show in design manager also BUT problem is how to extract zip file.
Design manager does not provide any UI option to extract it.
I have try following API but no success.
[1] Extracting a file package
[POST] {{baseUrl}}/cms/v3/source-code/extract/api-test-folder/theme-folder.zip
Above API gives response as “204 No Content”.
[2] Extract a zip file
[POST] {{baseUrl}}/cms/v3/source-code/extract/async
[DATA] {
"path": "/api-test-folder/theme-folder.zip"
}
Above API give following response.
{
"id": "100729881",
"links": {
"status": "https://api-na1.hubspot.com/cms/v3/source-code/extract/async/tasks/100729881/status"
}
}
But when check status using status link its give following response.
{
"status": "CANCELED",
"startedAt": "2024-08-14T13:12:24.146Z",
"completedAt": "2024-08-14T13:12:24.146Z"
}
Can someone show me where i am wrong?
Someone suggest me right path to upload zip file in design manager and how to extract it?
Thanks and please do the helpful.