---
title: "Writes an Operation to Sidetree."
method: POST
path: "/operations"
tags: ["Sidetree"]
---

# Writes an Operation to Sidetree.

`POST /operations`

## Request body

- union
  - SidetreeCreateOperation — Create operation.
    - `type` 'create'
    - `suffix_data` string — The Base64URL encoded Suffix Data Object.
    - `delta` string — The Base64URL encoded Create Operation Data Object.
  - SidetreeUpdateOperation — Update operation.
    - `type` 'update'
    - `did_suffix` string — The unique identifier string within a DID URI.
    - `update_reveal_value` string — The last update commitment value.
    - `delta` string — The Base64URL encoded Update Operation Data Object.
    - `signed_data` string — The JWS object as defined in Map File for Update operations.
  - SidetreeRecoverOperation — Recover operation.
    - `type` 'recover' — Recover operation.
    - `did_suffix` string — The unique identifier string within a DID URI.
    - `recovery_reveal_value` string — The last recovery commitment value.
    - `delta` string — The Base64URL encoded Recover Operation Data Object.
    - `signed_data` string — The JWS object as defined in Anchor File for Recovery operations.
  - SidetreeDeactivateOperation — Deactivate operation.
    - `type` 'deactivate'
    - `did_suffix` string — The unique identifier string within a DID URI.
    - `recovery_reveal_value` string — The last recovery commitment value.
    - `signed_data` string — The JWS object as defined in Anchor File for Deactivate operations.

## Response `200`

Success

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Server Error

---

[API](https://skmtc.net/decentralized-identity/apis/sidetree-rest-api.md) · [All operations](https://skmtc.net/decentralized-identity/apis/sidetree-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/decentralized-identity/sidetree-rest-api/revisions/9a32549ab92a/schema)
