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.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg3fQ.l9ZBzWLlogkvkG32Wogxw7YQsK0jssvJhnfqnFQc-Fk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v3/apps/guid-ce3247e4-c743-4bdc-b6f2-d24dd5a0eae1/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-ce3247e4-c743-4bdc-b6f2-d24dd5a0eae1/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.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg3fQ.l9ZBzWLlogkvkG32Wogxw7YQsK0jssvJhnfqnFQc-Fk" \
	-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: ad9e50b2-297b-44ff-bf93-52929463c7a6
Content-Length: 755
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "pagination": {
    "total_results": 3,
    "first": {
      "href": "/v3/apps/guid-ce3247e4-c743-4bdc-b6f2-d24dd5a0eae1/processes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-ce3247e4-c743-4bdc-b6f2-d24dd5a0eae1/processes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "6788ca81-4c0c-4e66-b204-a66ae96ab93b",
      "type": "web",
      "command": "bundle exec rails server -p $PORT"
    },
    {
      "guid": "666228f9-0acb-4ba8-a8ae-91413d98c508",
      "type": "worker",
      "command": "bundle exec rake worker"
    },
    {
      "guid": "37dbdf1f-358e-4197-abbd-2b0478db6f08",
      "type": "clock",
      "command": "bundle exec rake clockwork"
    }
  ]
}