Manage Services with the Public API

Here are some examples to help you get started managing your services using the Public API.

Create a new service with a GitHub repo

The mutation below will create a new service with the specified GitHub repo attached. The response will contain the newly created service.

mutation serviceCreate {
  serviceCreate(
    input: {
      projectId: "8df3b1d6-2317-4400-b267-56c4a42eed06"
      source: { repo: "railwayapp-templates/django" }
    }
  ) {
    id
  }
}

Edit this file on GitHub