API
CLI
POST /v1beta/projects/{project}/services/combined
Example request
request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"Example Service","description":"A service description","billing":{"deploymentPlan":"micro"},"deployment":{"instances":1},"ports":[{"name":"port-1","internalPort":8080,"public":true,"protocol":"HTTP"}],"vcsData":{"projectUrl":"https://github.com/northflank/gatsby-with-northflank","projectType":"github","dockerFilePath":"/Dockerfile","dockerWorkDir":"/","projectBranch":"master"},"environment":{"VARIABLE_1":"abcdef","VARIABLE_2":"12345"},"buildArguments":{"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"}}' \
https://api.northflank.com/v1beta/projects/{project}/services/combined
Example response
200 OK
Details about the newly created service.
JSON
{
"serviceType": "combined",
"serviceId": "new-service",
"buildInitiated": true,
"name": "New Service",
"description": "This is a new service."
}
Example response
409 Conflict
There is already a service with the same derived identifier