---
title: "Create Share"
method: POST
path: "/api/v1/authz/shares"
tags: ["Authorization"]
---

# Create Share

`POST /api/v1/authz/shares`

Create an authz_share row for a resource.

## Request body

- ShareCreate — Payload for creating an authz_share row.
  - `permission_level` 'read' | 'write' | 'execute' | 'admin'
  - `resource_id` string, uuid, required
  - `resource_type` 'flow' | 'deployment' | 'project' | 'knowledge_base' | 'variable' | 'file', required
  - `scope` 'private' | 'team' | 'user' | 'public', required
  - `target_id` string, uuid, nullable

## Response `201`

Successful Response

- ShareRead — Serialized authz_share row returned by the API.
  - `created_at` string, date-time, required
  - `created_by` string, uuid, nullable, required
  - `id` string, uuid, required
  - `permission_level` 'read' | 'write' | 'execute' | 'admin', required
  - `resource_id` string, uuid, required
  - `resource_type` 'flow' | 'deployment' | 'project' | 'knowledge_base' | 'variable' | 'file', required
  - `scope` 'private' | 'team' | 'user' | 'public', required
  - `target_id` string, uuid, nullable, required
  - `target_name` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-21** `22962dc5e81b` — 1 info
  - added the optional property `target_name` to the response with the `201` status
- **2026-06-08** `a5c4fa6a88f7` — 1 info
  - endpoint added
- **2025-10-16** `9bd3e81318d7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/authz/shares/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
