Update Template
A key, which acts with an app admin’s rights, or the session of an
app admin of Memegen (403 admin_required for anybody else’s). Renaming and changing the
slug are allowed, under the same rules as adding one: the name is
folded onto one line and kept to 120 characters, and a slug another
template holds is 409. Archiving one (archived: true) stops new
memes being made from it; archived: false restores an archived one
to the picker.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
The same rules as when adding one: folded onto one line, trimmed
and cut at 120 characters; one with nothing left is 422.
A slug another template holds is refused with 409.
Where the credit links to: an http or https address, or 422.
null clears it.
Response
Out of the picker. Memes already made from it keep rendering, which
is why a template is archived rather than deleted, but no new meme
can be made from it. Only an app admin of Memegen, or a key, brings one back:
archived: false on PATCH, or adding its picture again with
POST /meme-templates, /meme-templates/from-url or
/meme-templates/import, which restores it. Anybody else who adds
the same picture again is refused (“An admin removed this
template.”) and it stays archived.
The background, an http or https address. Absent on a built-in, which the app draws itself.