OBJECT

Mutation

link GraphQL Schema definition

  • type Mutation {
  • # Tell the application to index all the supported files in the given directory.
  • # 'kind' can be 0 for movies and 1 for series.
  • # 'backend' can be 0 for local and 1 for Rclone.
  • #
  • # Arguments
  • # name: [Not documented]
  • # filePath: [Not documented]
  • # kind: [Not documented]
  • # backend: [Not documented]
  • # rcloneName: [Not documented]
  • createLibrary(
  • name: String!,
  • filePath: String!,
  • kind: Int!,
  • backend: Int!,
  • rcloneName: String
  • ): LibraryResponse!
  • # Delete a library and remove all collected metadata.
  • #
  • # Arguments
  • # id: [Not documented]
  • deleteLibrary(id: Int!): LibraryResponse!
  • # Create a invite code so a user can register on the server
  • createUserInvite: UserInviteResponse!
  • # Create a playstate for the given media item can be the UUID of an episode or
  • # movie.
  • # Playtime should always be given in seconds.
  • #
  • # Arguments
  • # uuid: [Not documented]
  • # finished: [Not documented]
  • # playtime: [Not documented]
  • createPlayState(uuid: String!, finished: Boolean!, playtime: Float!): PlayStateResponse!
  • # Request permission to play a certain file
  • #
  • # Arguments
  • # uuid: [Not documented]
  • createStreamingTicket(uuid: String!): CreateSTResponse!
  • # Delete a user from the database, please note that the user will be able to keep
  • # using the account until the JWT expires.
  • #
  • # Arguments
  • # id: [Not documented]
  • deleteUser(id: Int!): UserResponse!
  • # Rescans the mediaFile with the given ID (or all, if ID omitted) and updates the
  • # stream information in the database.
  • #
  • # Arguments
  • # uuid: [Not documented]
  • updateStreams(uuid: String): Boolean!
  • # Refreshes all external agent information (poster/overviews etc.) for the given
  • # library or season/series/episode.
  • #
  • # Arguments
  • # libraryID: [Not documented]
  • # uuid: [Not documented]
  • refreshAgentMetadata(libraryID: Int, uuid: String): Boolean!
  • # Rescan all library paths for new files that are not indexed yet.
  • rescanLibraries: Boolean!
  • # Rescan a library based on the given filters.
  • # 1. If supply a "ID" it will refresh the entire library
  • # 2. If you supply it an "ID" and a "filepath" it will only scan the specific
  • # filepath in the given library
  • # 3. If you supply just a "filepath" it will loop over all libraries seeing if any
  • # of the given libraries match the given path and then scan only that path.
  • #
  • # Arguments
  • # id: [Not documented]
  • # filepath: [Not documented]
  • rescanLibrary(id: Int, filepath: String): Boolean!
  • # Tag an unidentified MovieFile
  • #
  • # Arguments
  • # input: [Not documented]
  • updateMovieFileMetadata(
  • input: UpdateMovieFileMetadataInput!
  • ): UpdateMovieFileMetadataPayload!
  • # Retag one or multiple EpisodeFiles
  • #
  • # Arguments
  • # input: [Not documented]
  • updateEpisodeFileMetadata(
  • input: UpdateEpisodeFileMetadataInput!
  • ): UpdateEpisodeFileMetadataPayload!
  • }

link Require by

This element is not required by anyone