Create a environment to a given project.
Created
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: 'POST', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-22T20:59:48.510Z" }
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": "2025-01-22T20:59:48.510Z", "updatedAt": "2025-01-22T20:59:48.510Z" } ]