---
title: "Update Service Endpoint"
method: PUT
path: "/v1/services/{service_id}"
tags: ["services"]
---

# Update Service Endpoint

`PUT /v1/services/{service_id}`

## Request

- Base URL: `https://docs.xenarch.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.xenarch.com/v1/services/{service_id}`
- Auth: none declared. Required headers: `authorization`

Update a service. Only the owning publisher can update.

## Path parameters

- `service_id` string, uuid, required

## Headers

- `authorization` string, required

## Request body

- ServiceUpdateRequest
  - `name` string, nullable
  - `url` string, nullable
  - `description` string, nullable
  - `price_per_request` union
    - number
    - string
  - `category` string, nullable
  - `pay_json_url` string, nullable

## Response `200`

Successful Response

- ServiceResponse
  - `id` string, uuid, required
  - `publisher_id` string, uuid, required
  - `name` string, required
  - `url` string, required
  - `description` string, required
  - `price_per_request` string, required
  - `category` string, required
  - `pay_json_url` string, nullable, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xenarch/apis/xenarch-platform.md) · [All operations](https://skmtc.dev/xenarch/apis/xenarch-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/xenarch/apis/xenarch-platform/revisions/88121faafcbf?raw)
