Contact us Login LIVE DEMO FREE TRIAL

upload(…)

Upload avatar image for specified tag.
Then it will be available from <api_url>/<api.static.uri>/tag/avatars/<file_name>
e.g. http://saas.navixy.com/api-v2/static/tag/avatars/abcdef123456789.png.

required subuser rights: tag_update

avatar_file_name returned in response and will be returned from /tag/list().

MUST be a POST multipart request (multipart/form-data),
with one of the parts being an image file upload (with the name “file”).

File part mime type must be one of :

  • image/jpeg or image/pjpeg
  • image/png
  • image/gif

parameters:

  • tag_id – tag id
  • file – image file
  • redirect_target – (optional) URL to redirect
    If redirect_target passed return redirect to <redirect_target>?response=<urlencoded response json>

return:

{
    "success": true,
    "value": <string> // avatar file name
}

errors:

  • 201 – Not found in database (when tag with tag_id not found in db)
  • 233 – No data file (if file part not passed)
  • 234 – Invalid data format (if passed file with unexpected mime type)
  • 254 – Cannot save file (on some file system errors)

If you have more questions please contact our support team

Contacts

USA: +1 858 815 9045

Mexico: +52 334 1642158

UK: +44 808 1641499

Germany: +49 1573 5988250

Russia: +7 495 317 1622

Log in

Loading...

We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more