Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Creating processes

PUT /v3/apps/:guid/procfile

Request

Route

PUT /v3/apps/guid-984939f0-5962-4b6d-b04c-7b57c53b44ae/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzh9.32fCJyhDkfwVD_Ktr3K5K15zX516LDHyPYruiPKYnNQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-984939f0-5962-4b6d-b04c-7b57c53b44ae/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzh9.32fCJyhDkfwVD_Ktr3K5K15zX516LDHyPYruiPKYnNQ" \
	-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-984939f0-5962-4b6d-b04c-7b57c53b44ae/processes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-984939f0-5962-4b6d-b04c-7b57c53b44ae/processes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "f98634dc-018e-416c-bf81-ec0918603405",
      "type": "web",
      "command": "bundle exec rails server -p $PORT"
    },
    {
      "guid": "159f3160-8cb7-4f24-a881-da13d25c94c6",
      "type": "worker",
      "command": "bundle exec rake worker"
    },
    {
      "guid": "953b2b89-8ea0-48e5-a9e6-475ede0166b3",
      "type": "clock",
      "command": "bundle exec rake clockwork"
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 40c84975-7d9e-4e98-bb4f-c8d3d538ddc3
Content-Length: 755
X-Content-Type-Options: nosniff