API ReferenceMedia Artifact
mediaArtifact.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| siteId | string | No | — | ID of the associated site |
| relatedEntityType | string | No | — | Related entity type |
| relatedEntityId | string | No | — | ID of the associated related entity |
| mediaType | enum(photo, video, audio, voice_note, screenshot, scan, other) | Yes | — | Media type |
| filename | string | Yes | — | Filename |
| objectStorageKey | string | Yes | — | Object storage key |
| mimeType | string | No | — | Mime type |
| capturedAt | string.date-time | No | — | Captured at |
| capturedByUserId | string | No | — | ID of the associated captured by user |
| geotag | string | No | — | Geotag |
| transcript | string | No | — | Transcript |
| aiSummary | string | No | — | Ai summary |
| verificationStatus | enum(unverified, verified, disputed, redacted) | Yes | "unverified" | Verification status |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"siteId": "550e8400-e29b-41d4-a716-446655440000",
"relatedEntityType": "example",
"relatedEntityId": "550e8400-e29b-41d4-a716-446655440000",
"mediaType": "photo",
"filename": "example",
"objectStorageKey": "example",
"verificationStatus": "unverified",
"visibilityMode": "global"
}