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

# Update an MDM control's tags

> Replace the full set of tags on an MDM control. Send the complete desired tag list — any existing tag not included is removed. An unknown control ID returns 404.

<span className="badge-write">Key: Write</span><span className="badge-company">Scope: Company</span>


## OpenAPI

````yaml https://api.getprimo.com/openapi.json put /mdm-controls/{mdmControlId}/tags
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /mdm-controls/{mdmControlId}/tags:
    put:
      tags:
        - MdmControls
      summary: Update an MDM control's tags
      description: >-
        Replace the full set of tags on an MDM control. Send the complete
        desired tag list — any existing tag not included is removed. An unknown
        control ID returns 404.
      operationId: updateMdmControlTags
      parameters:
        - name: mdmControlId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMdmControlTagsBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMdmControlTags_Output'
components:
  schemas:
    UpdateMdmControlTagsBody:
      type: object
      properties:
        tags:
          description: >-
            Full replacement set of tags for the control. Any existing tag not
            in this list is removed.
          type: array
          items:
            type: string
      required:
        - tags
    UpdateMdmControlTags_Output:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the MDM control tags were updated.
      required:
        - success
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````