Skip to navigation

Upload a custom pest icon

The API sanitizes SVGs (scripts, event handlers and external references removed) and stores the icon itself. Save the returned assetId on the pest’s icon.

Authentication

AuthorizationBearer

API session token from POST /v1/admin/session (8 hours). Sign-in itself is Google Workspace; see research R2.

Request

This endpoint expects a multipart form containing a file.
filefileRequired
PNG or SVG, 200 KB max.

Response

Stored; served publicly by getIcon

assetIdstring<=255 characters
urlstringformat: "uri"
contentTypeenum
Allowed values:
sizeBytesinteger<=204800

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error