Update service
PATCH {{baseUrl}}/services/:serviceId
Request Body
{"autoDeploy"=>"yes", "repo"=>"<string>", "branch"=>"<string>", "image"=>{"imagePath"=>"<string>", "ownerId"=>"<string>", "registryCredentialId"=>"<string>"}, "name"=>"<string>", "buildFilter"=>{"paths"=>["<string>", "<string>"], "ignoredPaths"=>["<string>", "<string>"]}, "rootDir"=>"<string>", "serviceDetails"=>{"buildCommand"=>"<string>", "publishPath"=>"<string>", "pullRequestPreviewsEnabled"=>"yes"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"\u003cstring\u003e","autoDeploy":"yes","branch":"\u003cstring\u003e","buildFilter":{"paths":["\u003cstring\u003e","\u003cstring\u003e"],"ignoredPaths":["\u003cstring\u003e","\u003cstring\u003e"]},"createdAt":"\u003cdateTime\u003e","image":{"imagePath":"\u003cstring\u003e","ownerId":"\u003cstring\u003e","registryCredentialId":"\u003cstring\u003e"},"name":"\u003cstring\u003e","notifyOnFail":"ignore","ownerId":"\u003cstring\u003e","repo":"\u003cstring\u003e","rootDir":"\u003cstring\u003e","slug":"\u003cstring\u003e","suspended":"not_suspended","suspenders":["parent_service","user"],"type":"private_service","updatedAt":"\u003cdateTime\u003e","serviceDetails":{"buildCommand":"\u003cstring\u003e","parentServer":{"id":"\u003cstring\u003e","name":"\u003cstring\u003e"},"publishPath":"\u003cstring\u003e","pullRequestPreviewsEnabled":"no","url":"\u003cstring\u003e"}}