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

# Replace the tags on a record.

> Send the full set of tags the record must end with. A tag that the list leaves out is
taken off the record, and one that the list names is added. Send an empty list to take
every tag off. To add tags without disturbing the others, use POST on this same path.
            
A tag belongs to one entity type, so use tags whose EntityType matches this record.
List them with GET /attribute/tags. A uid in the list that names no tag is skipped.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/templates/{entityUid}/tags
openapi: 3.0.0
info:
  title: Outseta API
  description: >-
    Outseta REST API. See the [API
    overview](https://docs.outseta.com/api-reference/overview) for
    authentication, field selection, pagination, filtering, errors, rate limits
    and webhooks.
  version: v1
servers:
  - url: https://{subdomain}.outseta.com
    description: Your Outseta account
    variables:
      subdomain:
        default: your-subdomain
        description: >-
          Your Outseta account subdomain — the part before ".outseta.com" in
          your admin URL.
security: []
paths:
  /api/v1/templates/{entityUid}/tags:
    put:
      tags:
        - Template
      summary: Replace the tags on a record.
      description: >-
        Send the full set of tags the record must end with. A tag that the list
        leaves out is

        taken off the record, and one that the list names is added. Send an
        empty list to take

        every tag off. To add tags without disturbing the others, use POST on
        this same path.
                    
        A tag belongs to one entity type, so use tags whose EntityType matches
        this record.

        List them with GET /attribute/tags. A uid in the list that names no tag
        is skipped.
      operationId: Template_SetTagsForEntity
      parameters:
        - name: entityUid
          in: path
          required: true
          description: The record's unique identifier
          schema:
            type: string
            nullable: true
          x-position: 1
      requestBody:
        x-name: tagUidList
        description: The uids of the tags the record must end with
        content:
          application/json:
            schema:
              nullable: true
              oneOf:
                - $ref: '#/components/schemas/TagUidList'
            example:
              TagUids:
                - wQXAbcmQ
        x-position: 2
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
                example: string
        '400':
          description: Invalid Uid format
        '401':
          description: Unauthorized
        '404':
          description: Entity not found
      security:
        - Bearer: []
        - ApiKey: []
components:
  schemas:
    TagUidList:
      type: object
      additionalProperties: false
      properties:
        TagUids:
          type: array
          nullable: true
          items:
            type: string
  securitySchemes:
    Bearer:
      type: http
      description: Enter your access token (OAuth / JWT).
      scheme: bearer
      bearerFormat: JWT
    ApiKey:
      type: apiKey
      description: 'Enter: Outseta {api_key}:{api_secret}'
      name: Authorization
      in: header

````

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