Envia a arte de um modelo de certificado (tipo IMAGE)
POST/api/upload/certificate-template/{templateId}/background
- Auth
- Token erforderlich
- X-CommunityId
X-CommunityIdSende die X-CommunityId der Community, in der die Operation stattfindet.
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.
PNG ou JPEG, mínimo 2000 px de largura (recomendado 3508×2480, A4 a 300 dpi), até 20 MB; acima de 3 MB é recomprimida em JPEG. Devolve `url`, `width`, `height`, `visibleArea` (a parte da arte que fica no A4, em %) e `layoutWarnings` (retângulos que caíram na faixa cortada). A arte antiga fica no S3: certificados emitidos apontam para ela.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
templateIdPflicht | path | string (uuid) |
Header
| Name | Typ | Beschreibung |
|---|---|---|
X-CommunityIdoptional | string (uuid) | ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade. |
Request-Body multipart/form-data
| Name | Typ | Beschreibung |
|---|---|---|
backgroundPflicht | string (binary) |
Antworten
| Status | Beschreibung |
|---|---|
201 | Arte enviada. |
400 | Requisição inválida — falha de validação. |
401 | Token ausente, inválido ou expirado. |
403 | Autenticado, mas sem permissão para esta operação. |
404 | Recurso não encontrado. |
500 | Erro interno do servidor. |
curl-Beispiel
curl -X POST "https://api.memberfy.net/api/upload/certificate-template/<templateId>/background" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID" \
-F "file=@caminho/do/arquivo"