> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chartbrew.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Dashboard Share Policy

> Create a share policy for a dashboard to enable secure sharing with signed URLs

This endpoint creates a new SharePolicy for a dashboard, which enables advanced sharing features including:

* Signed URL generation with expiration dates
* Parameter passing to dashboard variables
* Control over URL parameter allowance
* Enhanced security for public dashboards


## OpenAPI

````yaml POST /project/{id}/share/policy
openapi: 3.0.1
info:
  title: Chartbrew API reference
  description: The OpenAPI specification for Chartbrew
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.chartbrew.com
security:
  - bearerAuth: []
paths:
  /project/{id}/share/policy:
    post:
      description: Create a share policy for a project
      parameters:
        - name: id
          in: path
          description: ID of the project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Created share policy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SharePolicy'
        '400':
          description: Error response
        '401':
          description: Not authorized
        '403':
          description: Access denied
      security:
        - bearerAuth: []
components:
  schemas:
    SharePolicy:
      type: object
      properties:
        id:
          type: integer
        entity_type:
          type: string
          enum:
            - Project
            - Chart
        entity_id:
          type: integer
        params:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
              value:
                type: string
          description: Parameters to pass to variables in the dashboard's charts
        allow_params:
          type: boolean
          default: false
          description: Whether to allow parameters to be passed via URL
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````