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": "f2bd4e2d-5121-4c21-9dcd-2bed89b7e061",
    "technicalDescription": "sample string 3",
    "active": true
  },
  "relations": [
    {
      "active": true,
      "contract_ID": "b47157c3-8a58-4730-8002-079d33c717b8",
      "contractItem_ID": "cd63884d-09c6-4f12-aabd-3f4382bf76bd",
      "departement_ID": "106598f5-0e70-4c84-af50-0f0e9b944c9c",
      "departmentItem_ID": "6ba7e2cd-65e8-4d69-a4f6-fdcfc713322e",
      "iD": "d63218c2-8063-4e7b-bfb8-72a1140318a4",
      "site_ID": "2d556c1d-9609-4ac2-876f-1af7c31e1f40",
      "siteCustomer_ID": "03d1e6b7-019f-46ea-870a-5d2ec0529691",
      "sticker_ID": "7b7208e0-0955-4861-8300-921cd91280f8"
    },
    {
      "active": true,
      "contract_ID": "b47157c3-8a58-4730-8002-079d33c717b8",
      "contractItem_ID": "cd63884d-09c6-4f12-aabd-3f4382bf76bd",
      "departement_ID": "106598f5-0e70-4c84-af50-0f0e9b944c9c",
      "departmentItem_ID": "6ba7e2cd-65e8-4d69-a4f6-fdcfc713322e",
      "iD": "d63218c2-8063-4e7b-bfb8-72a1140318a4",
      "site_ID": "2d556c1d-9609-4ac2-876f-1af7c31e1f40",
      "siteCustomer_ID": "03d1e6b7-019f-46ea-870a-5d2ec0529691",
      "sticker_ID": "7b7208e0-0955-4861-8300-921cd91280f8"
    }
  ],
  "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": "a2a8e09f-a5c1-4e08-b8ed-c7fc7c7f2036",
        "isStatic": true,
        "stickerType_ID": "d857bf5b-b4ae-4fb3-bb93-0c9efd9683cc",
        "technicalDescription": "sample string 6"
      },
      "active": true,
      "backgroundColor": "sample string 2",
      "bold": true,
      "fontSize": 4,
      "foregroundColor": "sample string 5",
      "id": "c2af3c2f-d00f-47ac-8c56-1df9948693a2",
      "italic": true,
      "staticValue": "sample string 8",
      "sticker_ID": "9abf35b5-6160-408e-bd94-62f9a1a2cec9",
      "stickerField_ID": "278e62b9-3e41-4d81-a768-57806654a521",
      "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": "a2a8e09f-a5c1-4e08-b8ed-c7fc7c7f2036",
        "isStatic": true,
        "stickerType_ID": "d857bf5b-b4ae-4fb3-bb93-0c9efd9683cc",
        "technicalDescription": "sample string 6"
      },
      "active": true,
      "backgroundColor": "sample string 2",
      "bold": true,
      "fontSize": 4,
      "foregroundColor": "sample string 5",
      "id": "c2af3c2f-d00f-47ac-8c56-1df9948693a2",
      "italic": true,
      "staticValue": "sample string 8",
      "sticker_ID": "9abf35b5-6160-408e-bd94-62f9a1a2cec9",
      "stickerField_ID": "278e62b9-3e41-4d81-a768-57806654a521",
      "stringLength": 1,
      "stringStart": 1,
      "zoneNumber": 11
    }
  ],
  "active": true,
  "code": "sample string 2",
  "id": "812296f2-8b4d-4e20-b454-ee35d53a58bd",
  "stickerType_ID": "e98df7f5-dfd2-4c1a-81ee-61993d40897d",
  "stickerRelation_IDs": [
    "4888fbff-8f02-45d6-92bb-0098024823f0",
    "4d8e891e-e246-4c6e-b571-4f4c9eac7b6f"
  ],
  "site_ID": "4c06c54d-e566-4b1c-a29e-8e074a88d1c9"
}

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:
"496f8372-63fa-4d5b-bc64-8399a610e0b6"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">496f8372-63fa-4d5b-bc64-8399a610e0b6</guid>