Skip to content
Athena User Guide
Esc
↑↓navigate↵open⌘Jpreview

Attach an uploaded background to a certificate draft

POST/api/admin/certificates/templates/{id}/background
Authorization
AuthorizationBearer token · headerrequired
Path parameters
idstringrequired
min length 1
Request body
requiredapplication/json
fileIdstringrequired
Responses
200

Success

backgroundobjectrequired
Show properties
fileIdstringrequired
contentTypestringrequired
Show properties
Any of:
string
string
string
string
widthnumberrequired
heightnumberrequired
byteSizenumberrequired
backgroundUrlstringrequired
400

Response for status 400

errorstringrequired
401

Unauthorized

errorstringrequired
409

Response for status 409

errorstringrequired
413

Response for status 413

errorstringrequired
422

Validation failed

typestringrequired
onstringrequired
summarystring
messagestring
foundany
propertystring
expectedstring
500

Unhandled server error

errorstringrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST '/api/admin/certificates/templates/string/background' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "fileId": "string"
}'
Response
{
  "background": {
    "fileId": "string",
    "contentType": "image/png",
    "width": 0,
    "height": 0,
    "byteSize": 0
  },
  "backgroundUrl": "string"
}