---
title: "Set the organization's stream sharing opt-in settings"
method: PATCH
path: "/cdx/v1/opt-in"
tags: ["Opt Ins (cdx/v1)"]
---

# Set the organization's stream sharing opt-in settings

`PATCH /cdx/v1/opt-in`

[![General Availability](https://img.shields.io/badge/Lifecycle%20Stage-General%20Availability-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)

Updates the organization's stream sharing opt-in settings.

## Request body

- CdxV1OptIn — Stream sharing opt in options ## The Opt Ins Model <SchemaDefinition schemaRef="#/components/schemas/cdx.v1.OptIn" />
  - `api_version` 'cdx/v1' — APIVersion defines the schema version of this representation of a resource.
  - `kind` 'OptIn' — Kind defines the object this REST resource represents.
  - `stream_share_enabled` boolean — Enable stream sharing for the organization

## Response `200`

Opt In.

- object — Stream sharing opt in options ## The Opt Ins Model <SchemaDefinition schemaRef="#/components/schemas/cdx.v1.OptIn" />
  - `api_version` 'cdx/v1', required — APIVersion defines the schema version of this representation of a resource.
  - `kind` 'OptIn', required — Kind defines the object this REST resource represents.
  - `stream_share_enabled` boolean — Enable stream sharing for the organization

## Other responses

- `400` — Bad Request
- `401` — The request lacks valid authentication credentials for this resource.
- `403` — The access credentials were considered insufficient to grant access
- `404` — Not Found
- `409` — The request is in conflict with the current server state
- `422` — Validation Failed
- `429` — Rate Limit Exceeded
- `500` — Oops, something went wrong!

---

[API](https://skmtc.dev/confluent/apis/confluent-cloud-apis.md) · [All operations](https://skmtc.dev/confluent/apis/confluent-cloud-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/confluent/confluent-cloud-apis/revisions/a6a73f98a698/schema)
