---
title: "Override Service Operation"
method: PUT
path: "/services/{id}/operation"
tags: ["mock"]
---

# Override Service Operation

`PUT /services/{id}/operation`

## Query parameters

- `operationName` string, required

## Request body

- OperationOverrideDTO — Data Transfer object for grouping the mutable properties of an Operation
  - `dispatcher` string — Type of dispatcher to apply for this operation
  - `dispatcherRules` string — Rules of dispatcher for this operation
  - `defaultDelay` integer — Default delay in milliseconds to apply to mock responses on this operation
  - `parameterConstraints` ParameterConstraint[] — Constraints that may apply to incoming parameters on this operation
    - `name` string, required — Parameter name
    - `required` boolean — Whether it's a required constraint
    - `recopy` boolean — Whether it's a recopy constraint
    - `mustMatchRegexp` string — Whether it's a regular expression matching constraint
    - `in` 'path' | 'query' | 'header' — Parameter location

## Response `200`

Operation has been updated

## Other responses

- `500` — Operation cannot be updated

---

[API](https://skmtc.dev/microcks/apis/microcks-api-v1-7.md) · [All operations](https://skmtc.dev/microcks/apis/microcks-api-v1-7/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microcks/microcks-api-v1-7/revisions/cc062ec25192/schema)
