openapi: 3.0.3 info: title: Cumulocity Alarm Alarms Asset Models API version: 10.20.0 description: 'Raise, query, acknowledge, clear, and bulk-update alarms with four severity levels (CRITICAL, MAJOR, MINOR, WARNING) and four statuses (ACTIVE, ACKNOWLEDGED, CLEARED). Cumulocity auto-deduplicates alarms by source + type so repeated raises increment the count rather than creating duplicates. ' servers: - url: https://{tenant}.cumulocity.com variables: tenant: default: example security: - basicAuth: [] - bearerAuth: [] tags: - name: Asset Models paths: /service/dtm/asset-models: get: tags: - Asset Models summary: List Asset Models operationId: listAssetModels responses: '200': description: A collection of asset models. post: tags: - Asset Models summary: Create an Asset Model operationId: createAssetModel requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AssetModel' responses: '201': description: Asset model created. /service/dtm/asset-models/{id}: parameters: - name: id in: path required: true schema: type: string get: tags: - Asset Models summary: Retrieve an Asset Model operationId: getAssetModel responses: '200': description: A single asset model. put: tags: - Asset Models summary: Update an Asset Model operationId: updateAssetModel requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AssetModel' responses: '200': description: Asset model updated. delete: tags: - Asset Models summary: Delete an Asset Model operationId: deleteAssetModel responses: '204': description: Asset model deleted. components: schemas: AssetModel: type: object properties: id: type: string self: type: string format: uri name: type: string description: type: string icon: type: string properties: type: array items: type: object properties: key: type: string label: type: string type: type: string enum: - TEXT - NUMBER - BOOLEAN - DATE - ENUM - REFERENCE required: type: boolean default: {} allowedSubtypes: type: array items: type: string smartFunctions: type: array items: type: object properties: name: type: string expression: type: string securitySchemes: basicAuth: type: http scheme: basic bearerAuth: type: http scheme: bearer bearerFormat: JWT