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

# Set governed metadata for an object



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml put /metadata/objects/{object_type}/{object_id}
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /metadata/objects/{object_type}/{object_id}:
    put:
      tags:
        - governed-metadata
      summary: Set governed metadata for an object
      parameters:
        - name: object_type
          in: path
          description: Object type
          required: true
          schema:
            type: string
        - name: object_id
          in: path
          description: Object ID
          required: true
          schema:
            type: string
      requestBody:
        description: Values
        content:
          '*/*':
            schema:
              $ref: '#/components/schemas/api.ObjectMetadataInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
                additionalProperties: true
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/api.MetadataValidationErrorResponse'
components:
  schemas:
    api.ObjectMetadataInput:
      type: object
      properties:
        merge:
          type: boolean
        values:
          type: object
          additionalProperties: true
    api.MetadataValidationErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/api.MetadataValidationError'
    api.MetadataValidationError:
      type: object
      properties:
        code:
          type: string
        detail:
          type: string
        source:
          type: object
          properties:
            pointer:
              type: string
        title:
          type: string

````