PUT v1/Products/{productId}/Resources/{productResourceId}/MetaData

Add the Product Resource's meta data. The meta data CultureId parameter is required - if not set, the Resource's CultureId will be set to null. All other parameters are optional and are applied only if set in a request.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
productId

The Product id

integer

Required.

productResourceId

The Resource id

integer

Required.

Body Parameters

The Resource metaData

ProductResourceMetaData
NameDescriptionTypeAdditional information
Name

Gets or sets the name

string

None.

CultureId

Gets or sets the culture id

integer

None.

Data

Gets or sets the data. It is used for the link's URL, at least.

string

None.

Sequence

Gets or sets the Sequence

integer

None.

ContentType

The type of resource. Following values are allowed: 0 = Generic 1 = Image 2 = Movie 3 = Document

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "CultureId": 1,
  "Data": "sample string 2",
  "Sequence": 1,
  "ContentType": 1
}

application/xml, text/xml

Sample:
<ProductResourceMetaData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>sample string 1</Name>
  <CultureId>1</CultureId>
  <Data>sample string 2</Data>
  <Sequence>1</Sequence>
  <ContentType>1</ContentType>
</ProductResourceMetaData>

Response Information

Resource Description

The HttpResponseMessage object

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.