---
title: "Edit Service"
method: PATCH
path: "/public/user/service/edit/{service_id}"
tags: ["Service"]
---

# Edit Service

`PATCH /public/user/service/edit/{service_id}`

Allows a user to edit the details of an existing service.
This can include changes in payment method, adjusting automatic collection,
and marking for cancellation at the end of a period.

## Path parameters

- `service_id` string, required

## Headers

- `Content-Type` string, required

## Request body

- object
  - `cancel_comment` string — Comment regarding the cancellation.
  - `cancel_feedback` string — Feedback reasons for cancellation.
  - `payment_method_id` string — New payment method ID.
  - `service_is_automatic_collection` boolean — Flag to determine if service charge should be automatic.
  - `service_is_pending_cancellation` boolean — Indicates if the service should be canceled at the end of the period.
  - `service_metadata` object — Arbitrary metadata object associated with the service. Constraints - Must be a valid, non-nested JSON object. - Maximum 30 keys. - Each value's string representation ≤ 300 characters. - Total size ≤ 32KB.

## Response `200`

Successfully edited the service.

- object
  - `edited` string[] — List of service IDs that were successfully edited.
  - `message` string — Success message.

---

[API](https://skmtc.dev/byteful/apis/byteful-public-user-api.md) · [All operations](https://skmtc.dev/byteful/apis/byteful-public-user-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/byteful/byteful-public-user-api/revisions/3db1a6fc0099/schema)
