Space Docs
API ReferenceMedia Artifact

mediaArtifact.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
siteIdstringNo—ID of the associated site
relatedEntityTypestringNo—Related entity type
relatedEntityIdstringNo—ID of the associated related entity
mediaTypeenum(photo, video, audio, voice_note, screenshot, scan, other)Yes—Media type
filenamestringYes—Filename
objectStorageKeystringYes—Object storage key
mimeTypestringNo—Mime type
capturedAtstring.date-timeNo—Captured at
capturedByUserIdstringNo—ID of the associated captured by user
geotagstringNo—Geotag
transcriptstringNo—Transcript
aiSummarystringNo—Ai summary
verificationStatusenum(unverified, verified, disputed, redacted)Yes"unverified"Verification status
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—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"
}

On this page