Skip to content

Assets

Asset is a generic record that typically represents binary data like image that can be referenced and used in other records.
For example a Hub logo or favicon.

Upload an asset

Request

Uploads an asset for existing Hub. Currently supported assets are:

  • Logo,
  • Favicon.
Security
ApiKeyAuth
Path
subdomainstringrequired

Unique subdomain of requested Hub.

Query
api_versionstring

Api version

Value:"V3-R1"
Bodymultipart/form-data
typestringrequired

Type of asset to create

Enum:"logo""favicon"
filestring, (binary)required

File to upload as asset

curl -i -X POST \
  'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/assets?api_version=V3-R1' \
  -H 'Content-Type: multipart/form-data' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -F type=logo \
  -F file=string

Responses

Asset created successfully

Bodyapplication/json
urlstring, (uri)
Response
{ "url": "http://example.com" }