Edit a publication's metadata
const url = 'http://localhost:8080/api/v1/publications/1';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"example","number":"example","description":"example","publisher":"example","language":"example","published":"example","readingDirection":"ltr","contributors":[{"name":"example","role":"author"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:8080/api/v1/publications/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "example", "number": "example", "description": "example", "publisher": "example", "language": "example", "published": "example", "readingDirection": "ltr", "contributors": [ { "name": "example", "role": "author" } ] }'Admin only. Fields left out stay as they are, null clears one, and a blank string counts as null. Edited fields are written over what the file says after every rescan, until they’re cleared with DELETE /api/v1/publications/{publicationId}/edits. Changing the number changes where the publication sorts in its series.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Can’t be cleared.
The issue or volume label, such as Vol. 2; it sorts by the number it contains.
A BCP 47 language tag.
Replaces the whole list; null or [] lists nobody.
object
Responses
Section titled “Responses”The publication as edited.
A publication with metadata read from the file (the EPUB package
document, ComicInfo.xml in a CBZ, or a PDF’s document information),
with any fields an admin edited written over it.
object
object
From the file’s metadata, or its file name when it has none.
The number in its series as the file’s metadata writes it, such as “3”, “1.5” or “Vol. 3”.
Comic archives get their format from their bytes, so a ZIP named
.cbr is cbz. A FictionBook zipped as .fb2.zip or .fbz is
fb2 too; its file downloads as application/x-zip-compressed-fb2.
remote is a chapter from an extension: it has pages but no file.
A chapter from an extension whose source reads only EPUBs or only
PDFs is epub or pdf, and its file is downloaded through the
source.
Number of pages for comic formats.
False when the file is missing from disk. Missing files are kept so progress survives.
Whether /cover has an image for this publication.
Fields an admin changed by hand, which rescans keep.
People credited, in the order the file lists them.
object
May contain HTML, as EPUB descriptions often do.
A BCP 47 language tag.
YYYY, YYYY-MM or YYYY-MM-DD.
Set when the file says; right to left for manga marked so.
Example
{ "format": "epub", "editedFields": [ "title" ], "contributors": [ { "role": "author" } ], "language": "en", "published": "2014-06", "readingDirection": "ltr"}The request was malformed.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The request has no valid session token.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The signed-in user may not do this. demo_account when the user is a
shared demo account, named in CHEK_DEMO_USERS, which can’t change
its password, sessions, sign-in providers, extensions or annotations.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The resource does not exist.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The server failed; details are in its log.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}