---
title: "Share your Automation's definition"
method: PUT
path: "/v1/automations/{id}/sharing"
tags: ["Automations"]
---

# Share your Automation's definition

`PUT /v1/automations/{id}/sharing`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/automations/{id}/sharing`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Replace the entire audience with specific organization members, teams, or everyone. Only owners and admins may share organization-wide. Recipients can make their own paused copy using their own connections and models; they cannot run or edit yours or see its results. Empty arrays revoke sharing.

## Path parameters

- `id` string, required

## Request body

- UpdateAutomationSharing
  - `orgWide` boolean
  - `memberIds` string[]
  - `teamIds` string[]

## Response `200`

Sharing audience replaced.

- AutomationSharing
  - `orgWide` boolean, required
  - `memberIds` string[], required
  - `teamIds` string[], required

## Other responses

- `400`: Invalid sharing target.
- `403`: Organization-wide sharing forbidden.
- `404`: Not found or sharing disabled.

## Changes

- **2026-11-18** `a38fd1c0264f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/automations/:id/sharing/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
