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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NCIsImVtYWlsIjoiZW1haWwtMjYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTl9.rqaGyPG_aQqLO7R44d6yG_70_wmys4JfcI_O5cjMfCA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "d7d1fd79-9fb9-4fe9-8c6e-3bd0a49f8716",
"url": "/v2/stacks/d7d1fd79-9fb9-4fe9-8c6e-3bd0a49f8716",
"created_at": "2016-04-06T00:17:39Z",
"updated_at": null
},
"entity": {
"name": "example_stack",
"description": "Description for the example stack"
}
}
Headers