---
title: "UpdateService"
method: PUT
path: "/v1/services/"
tags: ["services"]
---

# UpdateService

`PUT /v1/services/`

Update service details.

## Request body

- DtoUpdateService
  - `autoRestart` boolean
  - `autoStart` boolean
  - `avatarUrl` string
  - `envs` string[]
  - `execUser` string
  - `logErrorPath` string
  - `logOutputPath` string
  - `maxStartRetries` integer
  - `name` string
  - `portBindings` ValueObjectPortBinding[]
    - `port` integer
    - `protocol` string
  - `postStartCmdSteps` string[]
  - `postStopCmdSteps` string[]
  - `preStartCmdSteps` string[]
  - `preStopCmdSteps` string[]
  - `startCmd` string
  - `startupFile` string
  - `status` string
  - `stopCmdSteps` string[]
  - `timeoutStartSecs` integer
  - `type` 'system' | 'database' | 'runtime' | 'webserver' | 'other'
  - `version` string
  - `workingDirectory` string

## Response `200`

ServiceUpdated

- object

---

[API](https://skmtc.net/goinfinite/apis/osapi.md) · [All operations](https://skmtc.net/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goinfinite/osapi/revisions/7320a5d8ef9e/schema)
