Skip to main content
Mutation

updateProfileMediaAsset

Changes a file in the profile's media library. A new title, caption or alt text is checked by moderation again. Requires being signed in and able to edit the profile (an owner or admin member, or a member of a space that manages it).

Arguments

Returns

ProfileMediaAsset!

Example

mutation UpdateProfileMediaAsset($input: UpdateProfileMediaAssetInput!) {
  updateProfileMediaAsset(input: $input) {
    __typename
    ... on ProfileMediaAudioAsset {
      audioUrl
      caption
      contentType
      createdAt
      durationMs
      id
      kind
      profileId
    }
    ... on ProfileMediaImageAsset {
      caption
      createdAt
      focalX
      focalY
      id
      kind
      photographer
      profileId
    }
    ... on ProfileMediaVideoAsset {
      caption
      createdAt
      id
      kind
      previewEndMs
      previewStartMs
      profileId
      status
    }
  }
}