POST v1/ProductGroups/{productGroupId}/Image

Post a new image for given Product group.

Request Information

Requires Authorization!

URI Parameters

NameDescriptionTypeAdditional information
productGroupId

The Product group Id

integer

Required.

Body Parameters

The image.

File
NameDescriptionTypeAdditional information
Id

Gets or sets the identifier.

integer

Must be 0

Filename

Gets or sets the filename.

string

Required

Max length: 255

ChangedTimestamp

Gets the date/time on which the file was last changed

date

None.

CreatedTimestamp

Gets the date/time on which the file was created

date

None.

FileLength

integer

Required

Checksum

string

None.

Sequence

Gets or sets the sequence.

integer

None.

Base64Data

Gets or sets the base64 data.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Filename": "sample string 2",
  "ChangedTimestamp": "2021-12-02T20:19:36.0291625+01:00",
  "CreatedTimestamp": "2021-12-02T20:19:36.0291625+01:00",
  "FileLength": 5,
  "Checksum": "sample string 6",
  "Sequence": 7,
  "Base64Data": "sample string 8"
}

application/xml, text/xml

Sample:
<File xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <Filename>sample string 2</Filename>
  <ChangedTimestamp>2021-12-02T20:19:36.0291625+01:00</ChangedTimestamp>
  <CreatedTimestamp>2021-12-02T20:19:36.0291625+01:00</CreatedTimestamp>
  <FileLength>5</FileLength>
  <Checksum>sample string 6</Checksum>
  <Sequence>7</Sequence>
  <Base64Data>sample string 8</Base64Data>
</File>

Response Information

Resource Description

Returns the imageFileId.


integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int>1</int>