Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Creating processes

PUT /v3/apps/:guid/procfile

Fields

Name Description Default Valid Values Example Values

Request

Headers

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

Route

PUT /v3/apps/guid-ce3fc0b5-57f3-49e4-b9f8-2ac9d49f4aed/procfile

Body

web: bundle exec rails server -p $PORT
worker: bundle exec rake worker
clock: bundle exec rake clockwork

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-ce3fc0b5-57f3-49e4-b9f8-2ac9d49f4aed/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDMxMDExOH0.Lqr6gUnryYuDUF1pNH3TtQ1nO6TSnqHpDF4vir6QHxQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6d3a6326-8bb4-4994-a5c6-946ae43eb162
Content-Length: 755
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "pagination": {
    "total_results": 3,
    "first": {
      "href": "/v3/apps/guid-ce3fc0b5-57f3-49e4-b9f8-2ac9d49f4aed/processes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-ce3fc0b5-57f3-49e4-b9f8-2ac9d49f4aed/processes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "571efc06-9da3-4600-b01f-adb30981bd92",
      "type": "web",
      "command": "bundle exec rails server -p $PORT"
    },
    {
      "guid": "f6489f43-bf41-40c2-906d-fae6415430be",
      "type": "worker",
      "command": "bundle exec rake worker"
    },
    {
      "guid": "36ec0733-f0ec-4c09-a87f-4f37618f7900",
      "type": "clock",
      "command": "bundle exec rake clockwork"
    }
  ]
}