Update theme favicon

Update theme favicon

Update the theme favicon

POSThttps://studio.edgeimpulse.com/v1/api/themes/{themeId}/favicon
Path parameters
themeId*integer

Theme ID

Body
image*string (binary)
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/themes/{themeId}/favicon', {
    method: 'POST',
    headers: {
      "Content-Type": "multipart/form-data"
    },
    body: JSON.stringify({
      "image": "binary"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated