styleAgentTerminology

Upload Term Image

Changed on

Upload an image to attach to a term.

Send the file as multipart form data in the file field. PNG, JPEG, GIF, WebP and PDF are accepted, up to 10 MB; the type is detected from the file's content, not its name or declared type.

To attach the image, write the returned filename as the value of an IMAGE_URL custom field on the term. Fetch it again with GET /images/{filename}.

Returns 413 if the file is larger than 10 MB, 415 for any other file type, and 422 for an empty file.

post/style-agent/terminology/images

Request

  • Base URL
    https://api.markup.ai
  • URL
    https://api.markup.ai/style-agent/terminology/images
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

Response

Successful Response

filenamestring required

Name of the stored image. Write it as the value of an IMAGE_URL custom field, and pass it to GET /images/{filename} to download the image.

Changes