Skip to main content

Projects - Archive project

Route URL

POST https://playcanvas.com/api/projects/:id/export

Description

This will allow you to download a zip archive of your entire project. You can import that archive from your Projects Dashboard to create a new Project from that archive. More about importing projects here.

The request will start an archive job and the job details will be returned in the response. You can poll the job by id until its status is either 'complete' or 'error'. When the job is done, its data will contain a URL to download the project archive.

Example

curl -H "Authorization: Bearer {accessToken}" -H "Content-Type: application/json" -X POST -d '{"branch_id": "99999999-9999-9999-9999-999999999999"}' "https://playcanvas.com/api/projects/{projectId}/export"

Parameters

NameTypeRequiredDescription
projectIdnumber✔️The id of the project.
branch_idstringThe id of the branch. If no id is specified, the main branch will be used.

Response Schema

Status: 201 Created
{
"id": int,
"created_at": date,
"modified_at": date,
"status": "running" | "complete" | "error",
"messages": [ list of strings ],
"data": {
"project": {
'id': int
},
"url": string
}
}

Errors

CodeDescription
401Unauthorized
403Forbidden
404Project not found
404Owner not found
429Too many requests

Rate Limiting

This route uses a strict rate limit.