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

# Assign tags to a test case

> Assigns the given tags to the test case. Tags must belong to the same canvas as the test case. Responds with an empty body.



## OpenAPI

````yaml POST /test-case/{id}/tags
openapi: 3.0.1
info:
  title: Tela API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tela.com
security: []
paths:
  /test-case/{id}/tags:
    post:
      tags:
        - Test Case Tag
      summary: Assign tags to a test case
      description: >
        Assigns the given tags to the test case. Tags must belong to the same
        canvas as the test case. Responds with

        an empty body.
      parameters:
        - name: id
          in: path
          required: true
          description: Test case id.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestCaseTagAssignRequest'
      responses:
        '200':
          description: Tags assigned. Empty body.
        '400':
          description: Bad request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Missing or invalid credentials, or a tag/test case is outside the
            caller's access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    TestCaseTagAssignRequest:
      type: object
      properties:
        tagIds:
          type: array
          items:
            type: string
            format: uuid
      required:
        - tagIds
    Error: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or UUID

````

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