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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyIiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzYzfQ.0LEfRF4rTWWKO5jqRKfrnzp2sE3O4l7Jbrs8FBdMg9M
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v3/apps/guid-2099a2a9-3b4b-402c-bd13-9609587d37e5/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-2099a2a9-3b4b-402c-bd13-9609587d37e5/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyIiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzYzfQ.0LEfRF4rTWWKO5jqRKfrnzp2sE3O4l7Jbrs8FBdMg9M" \
	-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: 8a43a3ea-28d5-4b47-9901-58b76568c06c
Content-Length: 755
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "pagination": {
    "total_results": 3,
    "first": {
      "href": "/v3/apps/guid-2099a2a9-3b4b-402c-bd13-9609587d37e5/processes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-2099a2a9-3b4b-402c-bd13-9609587d37e5/processes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "c76c0c0e-70fa-4f19-b9c7-963cbfc4993d",
      "type": "web",
      "command": "bundle exec rails server -p $PORT"
    },
    {
      "guid": "d0455862-85e7-4699-bb2e-e08c54061494",
      "type": "worker",
      "command": "bundle exec rake worker"
    },
    {
      "guid": "e8f29e96-9dd4-4c29-b6d8-dbeffa97c8cf",
      "type": "clock",
      "command": "bundle exec rake clockwork"
    }
  ]
}