---
title: "Update a DID service"
method: PATCH
path: "/identifiers/{did}/services/{serviceId}"
tags: ["Services"]
---

# Update a DID service

`PATCH /identifiers/{did}/services/{serviceId}`

Follows JSON Merge Patch semantics: absent fields are ignored, and
explicitly setting a field to null removes it.

## Parameters

- `./common-components.yml#/components/parameters/CorrelationId` — unresolved $ref

## Request body

- DidServiceUpdateRequest — Request body for updating a DID service.
  - `type` union — Updated service type.
    - string
    - string[]
  - `serviceEndpoint` union — Updated service endpoint.
    - string
    - object
    - union[]
      - union
        - string
        - object

## Response `200`

DID service updated successfully.

- DidDocumentService — unresolved $ref

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `404` — unresolved $ref
- `500` — unresolved $ref

---

[API](https://skmtc.dev/sphereon-opensource/apis/did-rest-api.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/did-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/did-rest-api/revisions/d575fc307e80/schema)
