Skip to main content
Mutation

publishProfile

Publishes the profile's draft. While the profile is public, the changes go live only after they pass moderation and the current version stays up meanwhile; otherwise they are applied at once and the profile is checked before it becomes public. Returns the new publish state. 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

  • profileIdID!

    ID of the profile.

  • seenString

    The editor's draft state from its live editing session. When given, the read waits until the draft includes those edits. Omit outside the editor.

Returns

PublishState!

Example

mutation PublishProfile($profileId: ID!, $seen: String) {
  publishProfile(profileId: $profileId, seen: $seen) {
    canPublish
    liveHash
    published
    reason
    submission
    submittedAt
    unpublishedChanges
  }
}