Update a badge
Update a directory badge. A new image is given either as base64 in image or as the URL returned by the files upload endpoint in imageUrl. In imageUrl, any other URL is refused, except the badge’s current image URL, which is not a change; a URL in image is ignored. A badge always keeps an image, so neither field can clear it.
Authentication
AuthorizationToken
Your API key, sent as Authorization: Token <your API key>
Path parameters
badgeId
directoryId
Request
This endpoint expects an object.
title
image
imageUrl
Response
Successful operation
href
title
image
id
imageUrl
Errors
400
Bad Request Error
404
Not Found Error
500
Internal Server Error