Create media for a product



Uploads a media file for a product content post in a space. File is scanned and stored.

Media file type is limited to the jpg, jpeg, gif, and png formats.

The API user must be a member of the space and have already created (own) the product content post.

Returns the relative SWM-based access URL for the stored media file.


Supported Media Types
Path Parameters
Body ()
"file":"string", - Base64 encoded file content
"fileName":"string" - Name of the file
Root Schema : schema
Type: string
Back to Top


Supported Media Types

200 Response

successful operation
Body ()
Root Schema : JSONObject
Type: object

201 Response

media resource created

403 Response

not space member

409 Response

media resource already exists
Back to Top


Sample Request:


Sample Response:

       {"response":{"code":"201.0","developerMessage":"media resource created"},

Possible Error Codes:

          "code":"404.0","developerMessage":"product resource not found",
          "code":"403.1","developerMessage":"not space member",
          "code":"403.2","developerMessage":"not content creator",
          "code":"409.0","developerMessage":"media resource already exists"
Back to Top