design-templates

Create a branded design template

A reusable look (brand module colour + centre logo + default caption) referenced by codes via design_template_id. The logo is accepted only as a data URI (never a URL — no server-side fetching), then sanitised and re-encoded server-side to a bounded clean PNG (metadata/EXIF stripped). A decode-QA gate protects readability at render time: if the logo or colour breaks the read, the logo is shrunk or dropped.

post/api/v1/design-templates

Request

  • Base URL: https://app.qrtap.kg
  • URL: https://app.qrtap.kg/api/v1/design-templates
  • Auth: HTTP bearer

Request body

namestring required
module_colorstring

Brand module colour (dark hex, e.g. #16613F). Applied only when it keeps contrast; QA has the final say.

logostring

Centre logo/image as a data URI: data:image/(png|jpeg|webp);base64,... Never a URL. Sanitised and re-encoded server-side.

captionstring

Response

Template created. Logo bytes are never echoed back — only has_logo.

idstring uuid required
namestring required
module_colorstring nullable required
captionstring nullable required
has_logoboolean required
created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.