Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Creating processes

PUT /v3/apps/:guid/procfile

Request

Route

PUT /v3/apps/guid-a1093f2c-c053-4271-8fec-4f17c51feaba/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDh9.04q54XqZ4JlUA9tmBd6Z2GV6npE-L7NEhTRUzTp3RaU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-a1093f2c-c053-4271-8fec-4f17c51feaba/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDh9.04q54XqZ4JlUA9tmBd6Z2GV6npE-L7NEhTRUzTp3RaU" \
	-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-a1093f2c-c053-4271-8fec-4f17c51feaba/processes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-a1093f2c-c053-4271-8fec-4f17c51feaba/processes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "7a3f86ac-bd4e-4544-83a3-325986520b56",
      "type": "web",
      "command": "bundle exec rails server -p $PORT"
    },
    {
      "guid": "323952e5-bf25-4324-8390-f48bc299c72d",
      "type": "worker",
      "command": "bundle exec rake worker"
    },
    {
      "guid": "7b2068e9-2e9e-4241-8f4a-4a0ac2648cc3",
      "type": "clock",
      "command": "bundle exec rake clockwork"
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 63c1df41-0a93-4a49-9d76-0952608f73e6
Content-Length: 755
X-Content-Type-Options: nosniff