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

# Bulk update cost alert metadata

> Metadata-only patch of visibility, owner, team, and tags for cost alerts. Any id missing or not editable returns 403 for the whole batch.



## OpenAPI

````yaml https://app-api.costory.io/docs/openapi.json patch /alerts-v2/costAlerts/bulk/metadata
openapi: 3.0.0
info:
  title: Costory
  version: '1.0'
  description: API Documentation
servers:
  - url: ''
    description: Production server
security: []
paths:
  /alerts-v2/costAlerts/bulk/metadata:
    patch:
      tags:
        - Alerts V2
      summary: Bulk update cost alert metadata
      description: >-
        Metadata-only patch of visibility, owner, team, and tags for cost
        alerts. Any id missing or not editable returns 403 for the whole batch.
      operationId: bulkUpdateCostAlertMetadataV2
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                updates:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      metadata:
                        type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                          type:
                            type: string
                            enum:
                              - PRIVATE
                              - PUBLIC
                          createdById:
                            type: string
                          teamId:
                            type: string
                            nullable: true
                          tagIds:
                            type: array
                            items:
                              type: string
                    required:
                      - id
                      - metadata
                  minItems: 1
              required:
                - updates
      responses:
        '204':
          description: Updated
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertError'
      security:
        - bearerAuth: []
components:
  schemas:
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          description: Unauthorized error message
      required:
        - error
    AlertError:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or Clerk ak_* API key
      description: >-
        Send `Authorization: Bearer <credential>` using either a Clerk session
        JWT or a Clerk API key (`ak_*`). API keys may identify a user (`user_*`)
        or organization (`org_*`) principal and are generated in the Clerk
        Dashboard under API keys.

````

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