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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMSIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODZ9.HG14Z2YnGLFVwSC1KoenWPdzr0qn12Uy8sseKIfteV0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "7c24607a-516b-4f83-99ae-2fc9607db07d",
"url": "/v2/stacks/7c24607a-516b-4f83-99ae-2fc9607db07d",
"created_at": "2015-12-22T18:28:06Z",
"updated_at": null
},
"entity": {
"name": "example_stack",
"description": "Description for the example stack"
}
}
Headers