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

# Update a link

> Update a link for the authenticated workspace.



## OpenAPI

````yaml PUT /links/update
openapi: 3.0.0
info:
  title: Reqlick API
  version: 1.0.0
  description: Reqlick API Documentation
servers:
  - url: https://api.reqlick.com
security:
  - bearerAuth: []
tags:
  - name: Documents
    description: Documents management
  - name: Domains
    description: Domains management
  - name: GoogleAuth
    description: Google Authentication
  - name: Links
    description: Links management
  - name: Payments
    description: Payments management
  - name: QRCodes
    description: QR Codes management
  - name: Resources
    description: Resources management
  - name: Subscriptions
    description: Subscription management
  - name: Users
    description: User management and authentication
  - name: Workspaces
    description: Workspaces management
paths:
  /links/update:
    put:
      tags:
        - Links
      summary: Update an existing link
      parameters:
        - name: workspace
          in: query
          required: true
          schema:
            type: string
          description: Workspace URL
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The social card image file to upload
                id:
                  type: string
                  description: ID of the link to be updated
                domain:
                  type: string
                  description: Domain of the link
                  example: example.com
                key:
                  type: string
                  description: Key for the link
                  example: unique-key-123
                url:
                  type: string
                  description: The URL the link points to (if not a file)
                  example: https://example.com
                isFile:
                  type: boolean
                  description: Boolean indicating if the link is for a file
                  example: true
                expiresAt:
                  type: string
                  format: date-time
                  description: Expiration date of the link
                password:
                  type: string
                  description: Optional password for protected access
                title:
                  type: string
                  description: Title of the link
                description:
                  type: string
                  description: Description of the link
                image:
                  type: string
                  description: Image URL for the link preview
                isPublic:
                  type: boolean
                  description: Whether the link is public or not
                  example: false
                utm_source:
                  type: string
                  description: UTM source parameter
                utm_medium:
                  type: string
                  description: UTM medium parameter
                utm_campaign:
                  type: string
                  description: UTM campaign parameter
                utm_term:
                  type: string
                  description: UTM term parameter
                utm_content:
                  type: string
                  description: UTM content parameter
                ref:
                  type: string
                  description: Referral information
                isRecord:
                  type: boolean
                  description: Indicates whether this is a record
                ios:
                  type: string
                  description: Custom targeting for iOS devices
                android:
                  type: string
                  description: Custom targeting for Android devices
      responses:
        '200':
          description: Link updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: boolean
                    example: false
        '400':
          description: Missing or invalid parameters
        '422':
          description: Key already exists or link not found
        '500':
          description: Internal server error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````