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

# Link platform photos as assets

> Requires `write:marketing-assets`. Body `{ photoIds, folderId? }` links existing platform photos into the asset library.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/marketing/assets/link-photos
openapi: 3.0.0
info:
  title: Car Storage Software API
  version: 1.1.0
  description: >-
    Team-scoped REST API for Car Storage Software. Authenticate with a team API
    key (`Authorization: Bearer <key>` or `x-api-key: <key>`) created under
    Settings → Integrations → API. Keys carry granular `read:*` / `write:*`
    scopes; read never implies write.
servers:
  - url: https://www.carstoragesoftware.com
security: []
paths:
  /api/v1/marketing/assets/link-photos:
    post:
      tags:
        - Marketing
      summary: Link platform photos as assets
      description: >-
        Requires `write:marketing-assets`. Body `{ photoIds, folderId? }` links
        existing platform photos into the asset library.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1MarketingAssetsLinkPhotos'
      responses:
        '201':
          description: Linked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1MarketingAssetsLinkPhotosResult'
        '401':
          description: Missing, invalid, revoked, or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: API key missing required scope, or API disabled for team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    V1MarketingAssetsLinkPhotos:
      type: object
      properties:
        photoIds:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        folderId:
          type: string
          nullable: true
          format: uuid
      required:
        - photoIds
    V1MarketingAssetsLinkPhotosResult:
      type: object
      properties:
        data:
          type: object
          properties:
            added:
              type: integer
            skipped:
              type: integer
          required:
            - added
            - skipped
      required:
        - data
    ApiError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          nullable: true
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Team API key from Settings → Integrations. Use `Authorization: Bearer
        <key>` or `x-api-key`.

````

## Related topics

- [Organize your marketing photos and files](/docs/marketing-events/organize-your-marketing-assets.md)
- [Upload marketing asset](/docs/api-reference/marketing/upload-marketing-asset.md)
- [Get marketing asset](/docs/api-reference/marketing/get-marketing-asset.md)
- [List marketing assets](/docs/api-reference/marketing/list-marketing-assets.md)
- [Update marketing asset](/docs/api-reference/marketing/update-marketing-asset.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.