Openminds Sock API
Create Application
Creates a new application on a target account. Please refer to the Account List API endpoint to see your available accounts.
URL
/applications
Method
POST
Data parameters
Required
user_token=[string]
client_token=[string]
account_id=[integer]
name=[string]
technology=[string]
: "php-fpm" or "rack"rack_env=[string]
(only required when "rack" was chosen for technology)
Optional
aliases[]
documentroot_suffix
Sample usage
curl -X POST https://sock.openminds.be/api/v1/applications -d user_token=1234 -d client_token=5678 \
-d name=exampleapp \
-d account_id=7 \
-d aliases[]=www.example.com \
-d documentroot_suffix=public_html \
-d technology=php-fpm
Sample response
{
"account_id": 7,
"created_at": "2013-03-14T14:03:16+01:00",
"aliases": [
"www.example.com"
],
"documentroot_suffix": "public_html",
"id": 13,
"name": "exampleapp"
}