Skip to main content

ChapterService_BatchCreateChapters

ChapterService_BatchCreateChapters

Path Parameters
  • graphicNovel string required

    The graphicNovel id.

Request Body required
  • requests object[] required

    Individual create chapter requests for this batch.

    • chapter object required
      • name string required

        The id of the chapter.

      • coverImage string

        The cover image of the chapter.

      • bannerImage string

        The banner image of the chapter.

      • title object[]

        The title of the chapter localized in multiple languages.

        • text string

          Localized string in the language corresponding to `language_code' below.

        • languageCode string

          The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

      • synopsis object[]

        The synopsis of the chapter localized in multiple languages.

        • text string

          Localized string in the language corresponding to `language_code' below.

        • languageCode string

          The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

      • description object[]

        The description of the chapter localized in multiple languages.

        • text string

          Localized string in the language corresponding to `language_code' below.

        • languageCode string

          The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

      • type enum

        Possible values: [TYPE_UNSPECIFIED, REGULAR, EXTRA]

        The type of chapter.

      • index int32

        The index of chapter.

      • releaseDate date

        The original release date of chapter.

      • pageCount int32

        The original page count of the chapter.

    • idempotentResourceId int64

      An idempotent identifier to be used as static resource id.

  • parent string required

    The parent this batch belongs to.

Responses

OK

Schema
  • name string

    The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

  • metadata object

    Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

    • @type string

      The type of the serialized message.

  • done boolean

    If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

  • error object

    The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

    • code int32

      The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

    • message string

      A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

    • details object[]

      A list of messages that carry the error details. There is a common set of message types for APIs to use.

      • @type string

        The type of the serialized message.

  • response object

    Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

    • @type string

      The type of the serialized message.