Deployment Zones
Create a new deployment zone
Create a new deployment zone with the provided details.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://demo.kaiten.sh/deployment-zones" \ -H "Content-Type: application/json" \ -d '{ "description": "2023-10-01T12:00:00Z", "name": "AWS us-west-2", "type": "external-deployment zone-id-12345" }'{
"createdAt": "2023-10-01T12:00:00Z",
"createdBy": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe"
},
"description": "2023-10-01T12:00:00Z",
"features": {
"gpu": "available"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "AWS us-west-2",
"releaseId": "123e4567-e89b-12d3-a456-426614174000",
"slug": "aws-us-west-2",
"type": "external-deployment zone-id-12345",
"updatedAt": "2023-10-01T12:00:00Z",
"updatedBy": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe"
}
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}
