---
title: "update a service instance"
method: PATCH
path: "/v2/service_instances/{instance_id}"
tags: ["ServiceInstances"]
---

# update a service instance

`PATCH /v2/service_instances/{instance_id}`

## Path parameters

- `instance_id` string, required

## Query parameters

- `accepts_incomplete` boolean

## Headers

- `X-Broker-API-Version` string, required
- `X-Broker-API-Originating-Identity` string

## Request body

- ServiceInstanceUpdateRequestBody
  - `context` Context — See [Context Conventions](https://github.com/openservicebrokerapi/servicebroker/blob/master/profile.md#context-object) for more details.
  - `service_id` string, required
  - `plan_id` string
  - `parameters` Object
  - `previous_values` ServiceInstancePreviousValues
    - `service_id` string
    - `plan_id` string
    - `organization_id` string
    - `space_id` string

## Response `200`

OK

- Object

## Other responses

- `202` — Accepted
- `400` — Bad Request
- `401` — Unauthorized
- `422` — Unprocessable entity

## Changes

- **2020-09-15** `1fe236521ec0` — 1 info
  - added the optional property `metadata/attributes` to the response with the `202` status
- **2020-05-12** `c02c8ad06b20` — 1 info
  - added the optional property `metadata` to the response with the `202` status
- **2020-04-28** `25dd370ccbb1` — 1 warning, 1 info
  - removed the optional property `metadata` from the response with the `202` status
  - added the non-success response with the status `401`
- **2020-04-17** `c0efc9ca0b0d` — 1 info
  - added the optional property `metadata/labels` to the response with the `202` status
- **2020-04-16** `7310802d3265` — 2 info
  - removed the non-success response with the status `401`
  - added the optional property `metadata` to the response with the `202` status

[Full history](https://skmtc.dev/cloudfoundry/apis/open-service-broker-api/changes/v2/service_instances/:instance_id/patch.md)

---

[API](https://skmtc.dev/cloudfoundry/apis/open-service-broker-api.md) · [All operations](https://skmtc.dev/cloudfoundry/apis/open-service-broker-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudfoundry/open-service-broker-api/revisions/8e8ca70f8e59/schema)
