POSThttps://api.schematichq.com/environments
Body Parameters
View in API Reference
Request
1// Create environment (POST /environments)
2const response = await fetch("https://api.schematichq.com/environments", {
3 method: "POST",
4 headers: {
5 "X-Schematic-Api-Key": "",
6 "Content-Type": "application/json"
7 },
8 body: JSON.stringify({
9 "environment_type": "development",
10 "name": "name"
11 }),
12});
13
14const body = await response.json();
15console.log(body);
Response