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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NSIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzh9.td6NQ-SQJ2JdCS-yCM5M3tPkfi7yAVyU-kj3vOumqXc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "61b0465f-c837-480d-84df-ada2ae777dea",
"url": "/v2/stacks/61b0465f-c837-480d-84df-ada2ae777dea",
"created_at": "2016-02-19T02:03:58Z",
"updated_at": null
},
"entity": {
"name": "example_stack",
"description": "Description for the example stack"
}
}
Headers