---
title: "Saves the given share for the current user's company"
method: POST
path: "/componentmetadata/shares"
tags: ["component-metadata - shares"]
---

# Saves the given share for the current user's company

`POST /componentmetadata/shares`

Allows creation of a new share with a group/user/all

## Request body

- Share — Share Model
  - `id` integer — the share id
  - `shareToId` integer — the id of the user/group the component is shared with
  - `shareToType` string — the type of entity shared with (user/group/all)
  - `shareToDisplayName` string — full name of the entity shared with
  - `componentType` string — the type of component being shared
  - `componentId` string — the id of the component being shared
  - `accessLevel` string — Level of rights shared with entity. (for projects only)

## Response `200`

successful operation

- Share — Share Model
  - `id` integer — the share id
  - `shareToId` integer — the id of the user/group the component is shared with
  - `shareToType` string — the type of entity shared with (user/group/all)
  - `shareToDisplayName` string — full name of the entity shared with
  - `componentType` string — the type of component being shared
  - `componentId` string — the id of the component being shared
  - `accessLevel` string — Level of rights shared with entity. (for projects only)

## Other responses

- `500` — Unable to save list of tags.

## Changes

- **2022-05-10** `dcd4514630c4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/adobe/apis/adobe-analytics-apis/changes/componentmetadata/shares/post.md)

---

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