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

# Set Product Tags

> Sets the product tags (Shoppable links) of one post, in place of its old tags; an empty list removes them. A tag has a url (http or https), a description (the product name) and a point x, y in px on the photo shown 320 px wide. With image_clickable true, a click on the photo opens the first tag's link. At most 20 tags. Paid plans, Pro widgets that are not feeds.



## OpenAPI

````yaml https://snapwidget.com/api/v1/openapi.json put /widgets/{id}/posts/{post}/tags
openapi: 3.1.0
info:
  title: SnapWidget API
  version: '1'
  description: >-
    Make and change social feed and review widgets, connect social accounts and
    get the embed code. The MCP server at https://snapwidget.com/mcp has the
    same actions for AI agents.
  termsOfService: https://snapwidget.com/terms
  contact:
    name: SnapWidget
    email: support@snapwidget.com
    url: https://snapwidget.com/docs/api-reference/introduction
servers:
  - url: https://snapwidget.com/api/v1
security:
  - token: []
tags:
  - name: Sign-up
  - name: Account
  - name: Social accounts
  - name: Widgets
  - name: Reviews
  - name: Campaigns
paths:
  /widgets/{id}/posts/{post}/tags:
    put:
      tags:
        - Widgets
      summary: Set Product Tags
      description: >-
        Sets the product tags (Shoppable links) of one post, in place of its old
        tags; an empty list removes them. A tag has a url (http or https), a
        description (the product name) and a point x, y in px on the photo shown
        320 px wide. With image_clickable true, a click on the photo opens the
        first tag's link. At most 20 tags. Paid plans, Pro widgets that are not
        feeds.
      operationId: set_product_tags
      parameters:
        - name: id
          in: path
          required: true
          description: The widget's id (the id in list_widgets).
          schema:
            type: string
        - name: post
          in: path
          required: true
          description: The post's id (the id in list_widget_posts).
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tags:
                  description: The tags of the post. An empty list removes them.
                  maxItems: 20
                  items:
                    properties:
                      url:
                        description: 'The product link: http or https.'
                        type: string
                      description:
                        description: The product name.
                        type: string
                      x:
                        description: Px from the left of the photo shown 320 px wide.
                        minimum: 0
                        maximum: 320
                        type: number
                      'y':
                        description: Px from the top of the photo shown 320 px wide.
                        minimum: 0
                        maximum: 1000
                        type: number
                    type: object
                    required:
                      - url
                      - x
                      - 'y'
                  type: array
                image_clickable:
                  description: >-
                    True: a click on the photo opens the first tag's link. Not
                    sent: it stays as it is.
                  type: boolean
              required:
                - tags
      responses:
        '200':
          description: The answer, as JSON.
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/Invalid'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  responses:
    Unauthorized:
      description: No token, or the token is wrong, expired or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The token or the plan has no API access, or the plan does not allow the
        change.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No item with this id in the account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Invalid:
      description: An input is not valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Too many calls. The Retry-After header gives the seconds to wait.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          description: What went wrong.
        errors:
          type: object
          description: The messages per input, when an input is not valid.
          additionalProperties:
            type: array
            items:
              type: string
        upgrade_url:
          type: string
          description: The upgrade page, when the plan does not allow it.
      required:
        - message
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: 'A token from the API page: https://snapwidget.com/settings/api'

````

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