OBJECT

Mutation

link GraphQL Schema definition

  • type Mutation {
  • # Arguments
  • # about: User's about/bio text
  • # titleLanguage: User's title language
  • # displayAdultContent: If the user should see media marked as
  • # adult-only
  • # airingNotifications: If the user should get notifications when
  • # a show they are watching aires
  • # scoreFormat: The user's list scoring system
  • # rowOrder: The user's default list order
  • # profileColor: Profile highlight color
  • # animeListOptions: The user's anime list options
  • # mangaListOptions: The user's anime list options
  • UpdateUser(
  • about: String,
  • titleLanguage: UserTitleLanguage,
  • displayAdultContent: Boolean,
  • airingNotifications: Boolean,
  • scoreFormat: ScoreFormat,
  • rowOrder: String,
  • profileColor: String,
  • animeListOptions: MediaListOptionsInput,
  • mangaListOptions: MediaListOptionsInput
  • ): User
  • # Create or update a media list entry
  • #
  • # Arguments
  • # id: The list entry id, required for updating
  • # mediaId: The id of the media the entry is of
  • # status: The watching/reading status
  • # score: The score of the media in the user's chosen scoring
  • # method
  • # scoreRaw: The score of the media in 100 point
  • # progress: The amount of episodes/chapters consumed by the user
  • # progressVolumes: The amount of volumes read by the user
  • # repeat: The amount of times the user has rewatched/read the
  • # media
  • # priority: Priority of planning
  • # private: If the entry should only be visible to authenticated
  • # user
  • # notes: Text notes
  • # hiddenFromStatusLists: If the entry shown be hidden from
  • # non-custom lists
  • # customLists: Array of custom list names which should be enabled
  • # for this entry
  • # advancedScores: Array of advanced scores
  • # startedAt: When the entry was started by the user
  • # completedAt: When the entry was completed by the user
  • SaveMediaListEntry(
  • id: Int,
  • mediaId: Int,
  • status: MediaListStatus,
  • score: Float,
  • scoreRaw: Int,
  • progress: Int,
  • progressVolumes: Int,
  • repeat: Int,
  • priority: Int,
  • private: Boolean,
  • notes: String,
  • hiddenFromStatusLists: Boolean,
  • customLists: [String],
  • advancedScores: [Float],
  • startedAt: FuzzyDateInput,
  • completedAt: FuzzyDateInput
  • ): MediaList
  • # Update multiple media list entries to the same values
  • #
  • # Arguments
  • # status: The watching/reading status
  • # score: The score of the media in the user's chosen scoring
  • # method
  • # scoreRaw: The score of the media in 100 point
  • # progress: The amount of episodes/chapters consumed by the user
  • # progressVolumes: The amount of volumes read by the user
  • # repeat: The amount of times the user has rewatched/read the
  • # media
  • # priority: Priority of planning
  • # private: If the entry should only be visible to authenticated
  • # user
  • # notes: Text notes
  • # hiddenFromStatusLists: If the entry shown be hidden from
  • # non-custom lists
  • # advancedScores: Array of advanced scores
  • # startedAt: When the entry was started by the user
  • # completedAt: When the entry was completed by the user
  • # ids: The list entries ids to update
  • UpdateMediaListEntries(
  • status: MediaListStatus,
  • score: Float,
  • scoreRaw: Int,
  • progress: Int,
  • progressVolumes: Int,
  • repeat: Int,
  • priority: Int,
  • private: Boolean,
  • notes: String,
  • hiddenFromStatusLists: Boolean,
  • advancedScores: [Float],
  • startedAt: FuzzyDateInput,
  • completedAt: FuzzyDateInput,
  • ids: [Int]
  • ): [MediaList]
  • # Delete a media list entry
  • #
  • # Arguments
  • # id: The id of the media list entry to delete
  • DeleteMediaListEntry(id: Int): Deleted
  • # Create or update text activity for the currently authenticated user
  • #
  • # Arguments
  • # id: The activity's id, required for updating
  • # text: The activity text
  • SaveTextActivity(id: Int, text: String): TextActivity
  • # Create or update message activity for the currently authenticated user
  • #
  • # Arguments
  • # id: The activity id, required for updating
  • # message: The activity message text
  • # recipientId: The id of the user the message is being sent to
  • SaveMessageActivity(id: Int, message: String, recipientId: Int): MessageActivity
  • # Delete an activity item of the authenticated users
  • #
  • # Arguments
  • # id: The id of the activity to delete
  • DeleteActivity(id: Int): Deleted
  • # Create or update an activity reply
  • #
  • # Arguments
  • # id: The activity reply id, required for updating
  • # activityId: The id of the parent activity being replied to
  • # text: The reply text
  • SaveActivityReply(id: Int, activityId: Int, text: String): ActivityReply
  • # Delete an activity reply of the authenticated users
  • #
  • # Arguments
  • # id: The id of the reply to delete
  • DeleteActivityReply(id: Int): Deleted
  • # Add or remove a like from a likeable type.
  • #
  • # Returns all the users who liked the same model
  • #
  • # Arguments
  • # id: The id of the likeable type
  • # type: The type of model to be un/liked
  • ToggleLike(id: Int, type: LikeableType): [User]
  • # Toggle the un/following of a user
  • #
  • # Arguments
  • # userId: The id of the user to un/follow
  • ToggleFollow(userId: Int): User
  • # Favourite or unfavourite an anime, manga, character, staff member, or studio
  • #
  • # Arguments
  • # animeId: The id of the anime to un/favourite
  • # mangaId: The id of the manga to un/favourite
  • # characterId: The id of the character to un/favourite
  • # staffId: The id of the staff to un/favourite
  • # studioId: The id of the studio to un/favourite
  • ToggleFavourite(
  • animeId: Int,
  • mangaId: Int,
  • characterId: Int,
  • staffId: Int,
  • studioId: Int
  • ): Favourites
  • # Update the order favourites are displayed in
  • #
  • # Arguments
  • # animeIds: The id of the anime to un/favourite
  • # mangaIds: The id of the manga to un/favourite
  • # characterIds: The id of the character to un/favourite
  • # staffIds: The id of the staff to un/favourite
  • # studioIds: The id of the studio to un/favourite
  • # animeOrder: List of integers which the anime should be ordered
  • # by (Asc)
  • # mangaOrder: List of integers which the manga should be ordered
  • # by (Asc)
  • # characterOrder: List of integers which the character should be
  • # ordered by (Asc)
  • # staffOrder: List of integers which the staff should be ordered
  • # by (Asc)
  • # studioOrder: List of integers which the studio should be
  • # ordered by (Asc)
  • UpdateFavouriteOrder(
  • animeIds: [Int],
  • mangaIds: [Int],
  • characterIds: [Int],
  • staffIds: [Int],
  • studioIds: [Int],
  • animeOrder: [Int],
  • mangaOrder: [Int],
  • characterOrder: [Int],
  • staffOrder: [Int],
  • studioOrder: [Int]
  • ): Favourites
  • # Create or update a review
  • #
  • # Arguments
  • # id: The review id, required for updating
  • # mediaId: The id of the media the review is of
  • # body: The main review text. Min:1500 characters
  • # summary: A short summary/preview of the review. Min:20, Max:120
  • # characters
  • # score: A short summary/preview of the review. Min:20, Max:120
  • # characters
  • # private: If the review should only be visible to its creator
  • SaveReview(
  • id: Int,
  • mediaId: Int,
  • body: String,
  • summary: String,
  • score: Int,
  • private: Boolean
  • ): Review
  • # Delete a review
  • #
  • # Arguments
  • # id: The id of the review to delete
  • DeleteReview(id: Int): Deleted
  • # Rate a review
  • #
  • # Arguments
  • # reviewId: The id of the review to rate
  • # rating: The rating to apply to the review
  • RateReview(reviewId: Int, rating: ReviewRating): Review
  • # Create or update a forum thread
  • #
  • # Arguments
  • # id: The thread id, required for updating
  • # title: The title of the thread
  • # body: The main text body of the thread
  • # categories: Forum categories the thread should be within
  • # mediaCategories: Media related to the contents of the thread
  • # sticky: If the thread should be stickied. (Mod Only)
  • # locked: If the thread should be locked. (Mod Only)
  • SaveThread(
  • id: Int,
  • title: String,
  • body: String,
  • categories: [Int],
  • mediaCategories: [Int],
  • sticky: Boolean,
  • locked: Boolean
  • ): Thread
  • # Delete a thread
  • #
  • # Arguments
  • # id: The id of the thread to delete
  • DeleteThread(id: Int): Deleted
  • # Toggle the subscription of a forum thread
  • #
  • # Arguments
  • # threadId: The id of the forum thread to un/subscribe
  • # subscribe: Whether to subscribe or unsubscribe from the forum
  • # thread
  • ToggleThreadSubscription(
  • threadId: Int,
  • subscribe: Boolean
  • ): Thread
  • # Create or update a thread comment
  • #
  • # Arguments
  • # id: The comment id, required for updating
  • # threadId: The id of thread the comment belongs to
  • # parentCommentId: The id of thread comment to reply to
  • # comment: The comment markdown text
  • SaveThreadComment(
  • id: Int,
  • threadId: Int,
  • parentCommentId: Int,
  • comment: String
  • ): ThreadComment
  • # Delete a thread comment
  • #
  • # Arguments
  • # id: The id of the thread comment to delete
  • DeleteThreadComment(id: Int): Deleted
  • }

link Require by

This element is not required by anyone