POST api/sticker/upsert

Request Information

URI Parameters

None.

Body Parameters

StickerViewModel
NameDescriptionTypeAdditional information
descriptions

Dictionary of string [key] and string [value]

None.

type

StickerTypeViewModel

None.

relations

Collection of StickerRelationViewModel

None.

details

Collection of StickerDetailViewModel

None.

active

boolean

Required

code

string

Required

Max length: 50

id

globally unique identifier

None.

stickerType_ID

globally unique identifier

Required

stickerRelation_IDs

Collection of globally unique identifier

None.

site_ID

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "descriptions": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "type": {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "code": "sample string 1",
    "id": "3056907a-7ce4-4f5f-b079-31084abb762c",
    "technicalDescription": "sample string 3",
    "active": true
  },
  "relations": [
    {
      "active": true,
      "contract_ID": "ba9cf897-4222-4662-ab29-07d8d05eb644",
      "contractItem_ID": "626aa0b0-7f0a-4756-9ce1-a4fd79c95cbf",
      "departement_ID": "87cf5c3d-8db5-4e6e-8840-76f8bba4b525",
      "departmentItem_ID": "e2d9096f-f33d-4090-b53e-c5951884079f",
      "iD": "623dccb2-818a-402e-b557-0119bf00d660",
      "site_ID": "de0d48af-5e82-4999-81cd-0fd37cc85168",
      "siteCustomer_ID": "1e0f8ab6-3d94-48c1-bd8d-ef988899d48c",
      "sticker_ID": "bddd4ac0-0061-410b-8580-6cba6241038d"
    },
    {
      "active": true,
      "contract_ID": "ba9cf897-4222-4662-ab29-07d8d05eb644",
      "contractItem_ID": "626aa0b0-7f0a-4756-9ce1-a4fd79c95cbf",
      "departement_ID": "87cf5c3d-8db5-4e6e-8840-76f8bba4b525",
      "departmentItem_ID": "e2d9096f-f33d-4090-b53e-c5951884079f",
      "iD": "623dccb2-818a-402e-b557-0119bf00d660",
      "site_ID": "de0d48af-5e82-4999-81cd-0fd37cc85168",
      "siteCustomer_ID": "1e0f8ab6-3d94-48c1-bd8d-ef988899d48c",
      "sticker_ID": "bddd4ac0-0061-410b-8580-6cba6241038d"
    }
  ],
  "details": [
    {
      "stickerField": {
        "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": "cfebcb27-b07b-44b1-a15c-c12b465b1ab0",
        "isStatic": true,
        "stickerType_ID": "5f807b4b-085b-4ecd-8e45-d056b11fa71e",
        "technicalDescription": "sample string 6"
      },
      "active": true,
      "backgroundColor": "sample string 2",
      "bold": true,
      "fontSize": 4,
      "foregroundColor": "sample string 5",
      "id": "7fe95c41-4c0b-4fbf-8047-88a462645f7e",
      "italic": true,
      "staticValue": "sample string 8",
      "sticker_ID": "57220558-4e7d-4ca7-b06e-67008cc9a3ce",
      "stickerField_ID": "2646f4bc-ca15-4ba8-877b-def616e0b8e5",
      "stringLength": 1,
      "stringStart": 1,
      "zoneNumber": 11
    },
    {
      "stickerField": {
        "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": "cfebcb27-b07b-44b1-a15c-c12b465b1ab0",
        "isStatic": true,
        "stickerType_ID": "5f807b4b-085b-4ecd-8e45-d056b11fa71e",
        "technicalDescription": "sample string 6"
      },
      "active": true,
      "backgroundColor": "sample string 2",
      "bold": true,
      "fontSize": 4,
      "foregroundColor": "sample string 5",
      "id": "7fe95c41-4c0b-4fbf-8047-88a462645f7e",
      "italic": true,
      "staticValue": "sample string 8",
      "sticker_ID": "57220558-4e7d-4ca7-b06e-67008cc9a3ce",
      "stickerField_ID": "2646f4bc-ca15-4ba8-877b-def616e0b8e5",
      "stringLength": 1,
      "stringStart": 1,
      "zoneNumber": 11
    }
  ],
  "active": true,
  "code": "sample string 2",
  "id": "7b170182-7f35-46be-9cf9-a81b20d0b10c",
  "stickerType_ID": "a9afb1aa-1955-4a67-9fd1-7c0e443d3ea8",
  "stickerRelation_IDs": [
    "363f2da5-a85d-425f-9a2d-7a241a6cb39d",
    "40ef3ba4-1dfe-454d-b79b-f7cde56a3404"
  ],
  "site_ID": "a27b7634-b0a9-4cc6-9848-80024943e280"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'EntityModel.StickerDetailViewModel' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'EntityModel.StickerDetailViewModel' contains cycles and cannot be serialized if reference tracking is disabled.

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 'StickerViewModel'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"0076bb69-8fc2-4372-b1f8-55c4f0998ae9"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0076bb69-8fc2-4372-b1f8-55c4f0998ae9</guid>