Create a Stack
POST /v2/stacks
Request
Route
POST /v2/stacks
Body
Name |
Description |
Default |
Valid Values |
Example Values |
name
|
The name for the stack.
|
|
|
|
description
|
The description for the stack
|
|
|
|
{"name":"example_stack","description":"Description for the example stack"}
Headers
cURL
curl "https://api.[your-domain.com]/v2/stacks" -d '{"name":"example_stack","description":"Description for the example stack"}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzB9.Fi77hnlSR3jjKeKJB5V74h0AhKyBcEStjxqhynRO3Dk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "c2dc1ecb-cf62-4589-8fcf-71e78af9d9d5",
"url": "/v2/stacks/c2dc1ecb-cf62-4589-8fcf-71e78af9d9d5",
"created_at": "2015-10-15T23:52:50Z",
"updated_at": null
},
"entity": {
"name": "example_stack",
"description": "Description for the example stack"
}
}
Headers