---
title: "Update a service"
method: PUT
path: "/compute/{connection_id}/service/{id}"
tags: ["compute", "service"]
---

# Update a service

`PUT /compute/{connection_id}/service/{id}`

## Request

- Base URL: `https://api.unified.to`
- URL: `https://api.unified.to/compute/{connection_id}/service/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- ComputeService
  - `id` string: Unique identifier for the service (app or project)
  - `created_at` string, date-time: When the service was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the service was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: Display name of the service
  - `type` 'WEB' | 'WORKER' | 'CRON' | 'STATIC' | 'PRIVATE' | 'OTHER': The kind of service
  - `status` 'CREATING' | 'DEPLOYING' | 'LIVE' | 'SUSPENDED' | 'FAILED' | 'OTHER': Normalized status; set to SUSPENDED or LIVE on update to suspend or resume
  - `runtime` string: Runtime or framework (eg. node, python, docker, nextjs)
  - `region_id` string: The region the service runs in
  - `gputype_id` string: The plan or instance type the service runs on
  - `sku` string: The vendor's own plan or size name
  - `instance_count` number: Current number of running instances
  - `min_instance_count` number: Autoscaling minimum
  - `max_instance_count` number: Autoscaling maximum
  - `repo_url` string: Source repository URL
  - `branch` string: Source branch deployed
  - `image` string: Container image, for image-based services
  - `build_command` string: Build command
  - `start_command` string: Start command
  - `url` string: Public URL of the service
  - `project_identifier` string: Vendor project, team or environment that groups the service (reference to TaskProject)
  - `env` ComputeEnv[]: Environment variables (write-only values) set when creating the service
    - `name` string, required: Environment variable name
    - `value` string: Environment variable value (write-only; never returned)
  - `metadata` ComputeMetadata[]: Vendor labels, tags and metadata
    - `id` string: The label, tag or metadata identifier
    - `slug` string: The label, tag or metadata key
    - `value` union: The label, tag or metadata value
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
    - `namespace` string: The origin of the value (eg. labels, tags, metadata)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` union: Additional data about the value
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
  - `raw` object: Raw data from integration

## Response `200`

Successful

- ComputeService
  - `id` string: Unique identifier for the service (app or project)
  - `created_at` string, date-time: When the service was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the service was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: Display name of the service
  - `type` 'WEB' | 'WORKER' | 'CRON' | 'STATIC' | 'PRIVATE' | 'OTHER': The kind of service
  - `status` 'CREATING' | 'DEPLOYING' | 'LIVE' | 'SUSPENDED' | 'FAILED' | 'OTHER': Normalized status; set to SUSPENDED or LIVE on update to suspend or resume
  - `runtime` string: Runtime or framework (eg. node, python, docker, nextjs)
  - `region_id` string: The region the service runs in
  - `gputype_id` string: The plan or instance type the service runs on
  - `sku` string: The vendor's own plan or size name
  - `instance_count` number: Current number of running instances
  - `min_instance_count` number: Autoscaling minimum
  - `max_instance_count` number: Autoscaling maximum
  - `repo_url` string: Source repository URL
  - `branch` string: Source branch deployed
  - `image` string: Container image, for image-based services
  - `build_command` string: Build command
  - `start_command` string: Start command
  - `url` string: Public URL of the service
  - `project_identifier` string: Vendor project, team or environment that groups the service (reference to TaskProject)
  - `env` ComputeEnv[]: Environment variables (write-only values) set when creating the service
    - `name` string, required: Environment variable name
    - `value` string: Environment variable value (write-only; never returned)
  - `metadata` ComputeMetadata[]: Vendor labels, tags and metadata
    - `id` string: The label, tag or metadata identifier
    - `slug` string: The label, tag or metadata key
    - `value` union: The label, tag or metadata value
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
    - `namespace` string: The origin of the value (eg. labels, tags, metadata)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` union: Additional data about the value
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
  - `raw` object: Raw data from integration

## Changes

- **2026-10-12** `32f1e856a6c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unified/apis/unified-to-api/changes/compute/:connection_id/service/:id/put.md)

---

[API](https://skmtc.dev/unified/apis/unified-to-api.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api/revisions/88a1fc7820d6?raw)
