---
title: "init(id:contentType:content:metadata:)"
framework: Foundation Models
role: symbol
role_heading: Initializer
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, visionOS 27.2+, watchOS 27.2+]
path: "foundationmodels/transcript/dataentry/init(id:contenttype:content:metadata:)"
---

# init(id:contentType:content:metadata:)

Creates a data entry with the content type, content, and metadata you provide.

## Declaration

```swift
init(id: String = UUID().uuidString, contentType: UTType, content: Data, metadata: GeneratedContent = GeneratedContent(properties: [:]))
```

## Parameters

- `id`: A unique identifier for the entry.
- `contentType`: A UTType identifying how to interpret content.
- `content`: A raw binary representation of the entry.
- `metadata`: Metadata pertinent to this entry.
