Products / Carousel

Add Picture

This endpoint allows you to upload a Picture based on JSON input.

You will only be able to upload a Picture after first providing the Session Key. To know how you can obtain the Session Key, go to Authentication.

HEADERS

ParameterValueDescription
Content-Typeapplication/jsonLanguage in which all request and response bodies are encoded
Accept*/*Any data of whatever mime type is accepted
X-Session-KeyAUTH_TOKENThis field must be completed with the token obtained at the authentication

REQUEST BODY

AttributeTypeDescription
name (Required)StringThe picture's name
isCarrousel (Required)BooleanIt has to be set to true to have the picture appearing in the Products carousel
folderId (Required)String-1 if you want to upload the Picture in the Root folder, the Folder's ID if you want to upload the file in a specific folder

RESPONSE

AttributeTypeDescription
locatorStringThe url you should upload the Picture (check table below).
idIntegerThe ID assigned to the Picture in the ForceManager Database
  • IMPORTANT: You can use whatever you want to upload your file to FM System. Despite of that, you must do a PUT request with the binary data you want to upload and set the following headers:
AttributeValue
Content-Typeapplication/octet-stream
Content-Length{file.size} -> file.size is the size of the file you are going to upload

RESPONSE CODES

StatusDescription
200 OKShows if operation succeeded
400 Bad RequestShows when an invalid request or the requested service is not available
post/products/VALUE/documents

Request

  • Base URL: https://api.forcemanager.com/api/v4
  • URL: https://api.forcemanager.com/api/v4/products/VALUE/documents
  • Auth: API key in header X-Session-Key

Headers

Acceptstring

Request body

namestring
isCarrouselboolean
folderIdstring

Response

Add picture

Changes

No recorded changes to this operation across all 1 revision of this API.