setProfileVisibility
Changes who can find and open the profile. The change applies at once, outside the profile's draft. Returns the profile as its editor sees it. Requires being signed in and able to edit the profile (an owner or admin member, or a member of a space that manages it).
Argumente
profileIdID!ID of the profile.
visibilityProfileVisibility!The new visibility.
Rückgabe
Profile!Beispiel
mutation SetProfileVisibility($profileId: ID!, $visibility: ProfileVisibility!) {
setProfileVisibility(profileId: $profileId, visibility: $visibility) {
canEdit
contentLocale
coverImageAssetId
createdAt
departments
displayName
id
kind
}
}