Skip to main content

MediaAttachment

Private attachment file with restricted access and ownership controls

type MediaAttachment {
id: ID!
sparePartsMachineId: ID
alt: [LocalizedString!]!
description: [LocalizedString!]!
tags: [LocalizedStringArray!]!
type: String
createdAt: DateTime
lastModifiedAt: DateTime
priority: Int
attachments: [LocalizedAttachment!]
orderId: Int
companyId: Int
customerId: Int
}

Fields

MediaAttachment.id ● ID! non-null scalar

Globally unique identifier for the media item.

Used to reference and retrieve the specific media item across all operations. This ID is immutable and unique across the entire media system.

MediaAttachment.sparePartsMachineId ● ID scalar

Associates the media item with a specific spare parts machine for maintenance and service documentation

MediaAttachment.alt ● [LocalizedString!]! non-null object

Alternative text descriptions for accessibility and SEO purposes.

Provides brief, descriptive text that explains the media content for screen readers and when the media cannot be displayed. Essential for web accessibility compliance and search engine optimization.

MediaAttachment.description ● [LocalizedString!]! non-null object

Detailed descriptions of the media content.

Provides comprehensive information about what the media shows or contains. Used for content management, search indexing, and user information display.

MediaAttachment.tags ● [LocalizedStringArray!]! non-null object

Searchable tags for categorizing and organizing media content.

Keywords that help classify and discover media items. Used for search functionality, content filtering, and organizational purposes.

MediaAttachment.type ● String scalar

Type classification of the media item.

Indicates whether this is an image, video, document, or attachment. Used for processing, display, and filtering logic.

MediaAttachment.createdAt ● DateTime scalar

Timestamp when the media item was originally created.

Recorded in ISO 8601 format with timezone information. Used for sorting, filtering, and audit purposes.

MediaAttachment.lastModifiedAt ● DateTime scalar

Timestamp when the media item was last modified.

Updated whenever the media metadata or content is changed. Recorded in ISO 8601 format with timezone information.

MediaAttachment.priority ● Int scalar

Display order priority for the media item.

Lower numeric values indicate higher priority and will be displayed first. Used for controlling the order of media items in galleries, carousels, and listings.

MediaAttachment.attachments ● [LocalizedAttachment!] list object

Collection of private attachment files in different languages and formats.

Contains confidential or sensitive files that are restricted to specific users or organizations. Each attachment can have multiple language variants and format versions.

MediaAttachment.orderId ● Int scalar

Associates the attachment with a specific order.

Links the attachment to order-related documentation such as invoices, contracts, or delivery notes. Cannot be used simultaneously with sparePartsMachineId as attachments are associated with either orders or machines.

MediaAttachment.companyId ● Int scalar

Associates the attachment with a specific company owner.

Indicates that the attachment belongs to and is accessible by the specified company. Cannot be used simultaneously with customerId as attachments have a single owner type.

MediaAttachment.customerId ● Int scalar

Associates the attachment with a specific customer owner.

Indicates that the attachment belongs to and is accessible by the specified customer. Cannot be used simultaneously with companyId as attachments have a single owner type.

Returned By

mediaAttachmentCreate mutation ● mediaAttachmentUpdate mutation

Member Of

Media object ● PaginatedMediaAttachmentResponse object