ZRM Docs
API ReferenceMedia Artifact

mediaArtifact.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
siteIdstringNoID of the associated site
relatedEntityTypestringNoRelated entity type
relatedEntityIdstringNoID of the associated related entity
mediaTypeenum(photo, video, audio, voice_note, screenshot, scan, other)YesMedia type
filenamestringYesFilename
objectStorageKeystringYesObject storage key
mimeTypestringNoMime type
capturedAtstring.date-timeNoCaptured at
capturedByUserIdstringNoID of the associated captured by user
geotagstringNoGeotag
transcriptstringNoTranscript
aiSummarystringNoAi summary
verificationStatusenum(unverified, verified, disputed, redacted)Yes"unverified"Verification status
workspaceIdstringNoID of the associated workspace
visibilityModeenum(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"
}

On this page