---
title: "POST /dashboards/{reference}/access-control/link"
method: POST
path: "/dashboards/{reference}/access-control/link"
tags: ["dashboards"]
---

# POST /dashboards/{reference}/access-control/link

`POST /dashboards/{reference}/access-control/link`

regenerate the default link for a dashboard

## Path parameters

- `reference` string, required

## Request body

- ServerGenerateDashboardLinkRequest
  - `email` string

## Response `200`

OK

- ServerRegenerateLinkResponse
  - `link` MalakDashboardLink, required
    - `contact` MalakContact
      - `city` string — Legacy lmao. should be address but migrations bit ugh :))
      - `company` string
      - `created_at` string
      - `created_by` string — User who added/created this contact
      - `email` string
      - `first_name` string
      - `id` string
      - `last_name` string
      - `lists` MalakContactListMapping[]
        - `contact_id` string
        - `created_at` string
        - `created_by` string
        - `id` string
        - `list` MalakContactList
          - `created_at` string
          - `created_by` string
          - `id` string
          - `reference` string
          - `title` string
          - `updated_at` string
          - `workspace_id` string
        - `list_id` string
        - `reference` string
        - `updated_at` string
      - `metadata` MalakCustomContactMetadata
      - `notes` string
      - `owner_id` string — User who owns the contact. Does not mean who added the contact but who chases or follows up officially with the contact
      - `phone` string
      - `reference` string
      - `updated_at` string
      - `workspace_id` string
    - `contact_id` string
    - `created_at` string
    - `dashboard_id` string
    - `expires_at` string
    - `id` string
    - `link_type` 'default' | 'contact'
    - `reference` string
    - `token` string
    - `updated_at` string
  - `message` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/ayinke-llc/apis/malak-s-api-documentation.md) · [All operations](https://skmtc.net/ayinke-llc/apis/malak-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ayinke-llc/malak-s-api-documentation/versions/3dff99ea5963/schema)
