Skip to Content
SeyloDocs

Change a service's build settings

POST
/api/v1/builds.updateSettings

Changes how a service is built. Omitted fields keep their value. Takes effect on the next deploy. buildNodeId must name a node with Can build on, or be null for automatic.

Needs services.update on the service (a grant on its project covers it). Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
builder?string|string|string
contextPath?string
Match^(?!/)(?!.*(^|/)\.\.(/|$)).*$
Lengthlength <= 300
dockerfilePath?string
Match^(?!/)(?!.*(^|/)\.\.(/|$)).*$
Lengthlength <= 300
inlineDockerfile?|null
targetStage?string
Lengthlength <= 100
buildNodeId?|null
startCommand?string
Lengthlength <= 2000
installCommand?string
Lengthlength <= 2000
buildCommand?string
Lengthlength <= 2000

Response Body

Success.

application/json
  1. response
builder*string|string|string
contextPath*string
Match^(?!/)(?!.*(^|/)\.\.(/|$)).*$
Lengthlength <= 300
dockerfilePath*string
Match^(?!/)(?!.*(^|/)\.\.(/|$)).*$
Lengthlength <= 300
inlineDockerfile*|null
targetStage*string
Lengthlength <= 100
buildNodeId*|null
startCommand*string
Lengthlength <= 2000
installCommand*string
Lengthlength <= 2000
buildCommand*string
Lengthlength <= 2000
Example Request
curl -X POST 'https://example.com/api/v1/builds.updateSettings' \  -H 'Content-Type: application/json' \  -d '{  "serviceId": "string"}'
Example Response
{  "builder": "railpack",  "contextPath": "string",  "dockerfilePath": "string",  "inlineDockerfile": "string",  "targetStage": "string",  "buildNodeId": "string",  "startCommand": "string",  "installCommand": "string",  "buildCommand": "string"}