POST api/StickerField/Upsert

Request Information

URI Parameters

None.

Body Parameters

StickerFieldViewModel
NameDescriptionTypeAdditional information
previewValue

Dictionary of string [key] and string [value]

None.

descriptions

Dictionary of string [key] and string [value]

None.

active

boolean

Required

code

string

Required

Max length: 50

id

globally unique identifier

None.

isStatic

boolean

None.

stickerType_ID

globally unique identifier

Required

technicalDescription

string

Required

Max length: 100

Request Formats

application/json, text/json

Sample:
{
  "previewValue": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "descriptions": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "active": true,
  "code": "sample string 2",
  "id": "fd915015-2865-4a96-abbc-844b6b9dbd89",
  "isStatic": true,
  "stickerType_ID": "2bf1398c-a2df-45ae-94e0-f6ce86c4cac5",
  "technicalDescription": "sample string 6"
}

application/xml, text/xml

Sample:
<stickerField xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <code>sample string 2</code>
  <id>fd915015-2865-4a96-abbc-844b6b9dbd89</id>
  <isStatic>true</isStatic>
  <stickerType_ID>2bf1398c-a2df-45ae-94e0-f6ce86c4cac5</stickerType_ID>
  <technicalDescription>sample string 6</technicalDescription>
  <descriptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </descriptions>
  <previewValue xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </previewValue>
</stickerField>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StickerFieldViewModel'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"3e10f2ba-31ea-430b-8117-8dc6f1e80e22"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3e10f2ba-31ea-430b-8117-8dc6f1e80e22</guid>