Environments from a project.
OK
DNS label format as of defined on RFC1123
"development"
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/environments', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "development", "createdAt": "2024-11-21T09:49:39.153Z", "updatedAt": "2024-11-21T09:49:39.153Z" } ]
Create a environment to a given project.
Created
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/environments', { method: 'POST', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2024-11-21T09:49:39.153Z" }