API
CLI
POST /v1beta/projects/{project}/services/build
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"},"vcsData":{"projectUrl":"https://github.com/northflank/gatsby-with-northflank","projectType":"github","dockerFilePath":"/Dockerfile","dockerWorkDir":"/"},"buildConfiguration":{"branchRestrictions":[null],"prRestrictions":[null]},"buildArguments":{"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"}}' \
https://api.northflank.com/v1beta/projects/{project}/services/build
Example response
200 OK
Details about the newly created service.
JSON
{
"serviceType": "build",
"serviceId": "new-service",
"name": "New Service",
"description": "This is a new service."
}
Example response
409 Conflict
There is already a service with the same derived identifier