Unity Projects Environments API (Public)
Public Unity API for managing project environments.
Download OpenAPI specification:
List environments for a project
Code samples for "{title}":
Request example
curl -X GET \ "https://services.api.unity.com/unity/v1/projects/{projectId}/environments"
Response example
{ "results": [ { "id": "390121ca-bb43-494f-b418-55be4e0c0faf", "projectId": "390121ca-bb43-494f-b418-55be4e0c0faf", "projectGenesisId": "e69fb9a4-0b13-43a0-8a47-b599f01d8300", "name": "production", "isDefault": true, "createdAt": "2020-07-20T18:30:51.243Z", "updatedAt": "2020-08-25T11:55:20.651Z", "archivedAt": "2020-08-25T11:55:20.651Z" } ]}
Create an environment in a project
Code samples for "{title}":
Request example
curl -X POST \ -H "Content-Type: application/json" \ -d '{ "name": "staging"}' \ "https://services.api.unity.com/unity/v1/projects/{projectId}/environments"
Response example
{ "id": "390121ca-bb43-494f-b418-55be4e0c0faf", "projectId": "390121ca-bb43-494f-b418-55be4e0c0faf", "projectGenesisId": "e69fb9a4-0b13-43a0-8a47-b599f01d8300", "name": "production", "isDefault": true, "createdAt": "2020-07-20T18:30:51.243Z", "updatedAt": "2020-08-25T11:55:20.651Z", "archivedAt": "2020-08-25T11:55:20.651Z"}
Get an environment
Code samples for "{title}":
Request example
curl -X GET \ "https://services.api.unity.com/unity/v1/projects/{projectId}/environments/{environmentId}"
Response example
{ "id": "390121ca-bb43-494f-b418-55be4e0c0faf", "projectId": "390121ca-bb43-494f-b418-55be4e0c0faf", "projectGenesisId": "e69fb9a4-0b13-43a0-8a47-b599f01d8300", "name": "production", "isDefault": true, "createdAt": "2020-07-20T18:30:51.243Z", "updatedAt": "2020-08-25T11:55:20.651Z", "archivedAt": "2020-08-25T11:55:20.651Z"}
Delete an environment
Code samples for "{title}":
Request example
curl -X DELETE \ "https://services.api.unity.com/unity/v1/projects/{projectId}/environments/{environmentId}"
Response example
{ "type": "string", "title": "string", "status": 0, "requestId": null, "code": 0, "detail": "string", "instance": "string", "details": [ {} ]}