Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Creating processes

PUT /v3/apps/:guid/procfile

Request

Route

PUT /v3/apps/guid-d01255ec-6e05-4ee5-8e7f-c950f10a6564/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTl9.WY4m3ECRpb8DtRlY_vtjau16Rr-9JeCp1HBp8SUc73A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-d01255ec-6e05-4ee5-8e7f-c950f10a6564/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTl9.WY4m3ECRpb8DtRlY_vtjau16Rr-9JeCp1HBp8SUc73A" \
	-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-d01255ec-6e05-4ee5-8e7f-c950f10a6564/processes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-d01255ec-6e05-4ee5-8e7f-c950f10a6564/processes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "5d9d425f-212d-412a-8b31-c63fbe9f2860",
      "type": "web",
      "command": "bundle exec rails server -p $PORT"
    },
    {
      "guid": "0a6419ff-2aa6-41b2-9439-bb555e51f3df",
      "type": "worker",
      "command": "bundle exec rake worker"
    },
    {
      "guid": "ba9830ff-878d-4526-94a5-af6416d6d725",
      "type": "clock",
      "command": "bundle exec rake clockwork"
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 947ab026-36ae-41e3-9d51-8dc34df47bcd
Content-Length: 755
X-Content-Type-Options: nosniff