Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Creating processes

PUT /v3/apps/:guid/procfile

Request

Route

PUT /v3/apps/guid-1132c967-9517-43a7-88fa-424dbbb57864/procfile

Body

Name Description Default Valid Values Example Values
web: bundle exec rails server -p $PORT
worker: bundle exec rake worker
clock: bundle exec rake clockwork

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzN9.FC4ej925bmIXaXofdBbzELhFB4zlSQFH1bWGXdBkihA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-1132c967-9517-43a7-88fa-424dbbb57864/procfile" -d 'web: bundle exec rails server -p $PORT
worker: bundle exec rake worker
clock: bundle exec rake clockwork
' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzN9.FC4ej925bmIXaXofdBbzELhFB4zlSQFH1bWGXdBkihA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 3,
    "first": {
      "href": "/v3/apps/guid-1132c967-9517-43a7-88fa-424dbbb57864/processes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-1132c967-9517-43a7-88fa-424dbbb57864/processes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "d79ab14b-0248-4a78-8ad0-79019313e070",
      "type": "web",
      "command": "bundle exec rails server -p $PORT"
    },
    {
      "guid": "9945b6da-6e22-44d0-b1fd-df6d889b2504",
      "type": "worker",
      "command": "bundle exec rake worker"
    },
    {
      "guid": "c43f1350-ce86-42e7-b16a-ba2ea1fe5cca",
      "type": "clock",
      "command": "bundle exec rake clockwork"
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 192beccf-7f13-45fa-809b-2e4d572971e1
Content-Length: 755
X-Content-Type-Options: nosniff