POST api/StickerDetail/upsert?stickerID={stickerID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stickerID

globally unique identifier

Required

Body Parameters

Collection of StickerDetailViewModel
NameDescriptionTypeAdditional information
stickerField

StickerFieldViewModel

None.

active

boolean

Required

backgroundColor

string

Required

Max length: 6

bold

boolean

Required

fontSize

integer

Required

foregroundColor

string

Required

Max length: 6

ID

globally unique identifier

None.

italic

boolean

Required

staticValue

string

Max length: 20

sticker

StickerViewModel

None.

sticker_ID

globally unique identifier

Required

stickerField_ID

globally unique identifier

Required

stringLength

integer

None.

stringStart

integer

None.

zoneNumber

integer

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "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": "f3ba1590-146f-448e-b276-413d70924cfa",
      "isStatic": true,
      "stickerType_ID": "379ebff3-314e-434d-b275-f8f190719b90",
      "technicalDescription": "sample string 6"
    },
    "active": true,
    "backgroundColor": "sample string 2",
    "bold": true,
    "fontSize": 4,
    "foregroundColor": "sample string 5",
    "id": "b936dd27-6f7d-4517-a9ea-838ac30359f4",
    "italic": true,
    "staticValue": "sample string 8",
    "sticker": {
      "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": "a4848e44-7ad9-4578-88aa-28d7f2892524",
        "technicalDescription": "sample string 3",
        "active": true
      },
      "relations": [
        {
          "active": true,
          "contract_ID": "d7090a73-3208-411f-812e-d42aa722fac7",
          "contractItem_ID": "13b4cd12-1e4a-441a-9955-65448c6393c2",
          "departement_ID": "9c9573be-abe2-40a7-bfa4-c6beed1122bc",
          "departmentItem_ID": "7ae3c217-48bd-405e-9a4e-acf576033803",
          "iD": "59cea447-d42a-4572-ad19-22912590d8e3",
          "site_ID": "dd5553eb-5202-44b9-a98f-7104aeabb241",
          "siteCustomer_ID": "795ead41-3c86-4f91-acc1-62377df9b384",
          "sticker_ID": "9e12325c-98b8-4bda-9464-dcd2cda441b0"
        },
        {
          "active": true,
          "contract_ID": "d7090a73-3208-411f-812e-d42aa722fac7",
          "contractItem_ID": "13b4cd12-1e4a-441a-9955-65448c6393c2",
          "departement_ID": "9c9573be-abe2-40a7-bfa4-c6beed1122bc",
          "departmentItem_ID": "7ae3c217-48bd-405e-9a4e-acf576033803",
          "iD": "59cea447-d42a-4572-ad19-22912590d8e3",
          "site_ID": "dd5553eb-5202-44b9-a98f-7104aeabb241",
          "siteCustomer_ID": "795ead41-3c86-4f91-acc1-62377df9b384",
          "sticker_ID": "9e12325c-98b8-4bda-9464-dcd2cda441b0"
        }
      ],
      "details": [],
      "active": true,
      "code": "sample string 2",
      "id": "8d5a0e8c-368f-417f-a1f7-59a64bf7292a",
      "stickerType_ID": "0751be52-7e6d-4332-8814-ab215b2410c7",
      "stickerRelation_IDs": [
        "cb3926a7-abc6-4d8f-9d1d-af9935924b92",
        "fb56fff1-f573-4b43-94ba-9b6fbe712247"
      ],
      "site_ID": "ecf92852-9a01-43ef-9b5d-fc0d21ec3994"
    },
    "sticker_ID": "32a4f01c-13bf-4db0-95dc-88491ce400ea",
    "stickerField_ID": "a8ea63b8-ca8d-4296-bf6c-3738f478df21",
    "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": "f3ba1590-146f-448e-b276-413d70924cfa",
      "isStatic": true,
      "stickerType_ID": "379ebff3-314e-434d-b275-f8f190719b90",
      "technicalDescription": "sample string 6"
    },
    "active": true,
    "backgroundColor": "sample string 2",
    "bold": true,
    "fontSize": 4,
    "foregroundColor": "sample string 5",
    "id": "b936dd27-6f7d-4517-a9ea-838ac30359f4",
    "italic": true,
    "staticValue": "sample string 8",
    "sticker": {
      "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": "a4848e44-7ad9-4578-88aa-28d7f2892524",
        "technicalDescription": "sample string 3",
        "active": true
      },
      "relations": [
        {
          "active": true,
          "contract_ID": "d7090a73-3208-411f-812e-d42aa722fac7",
          "contractItem_ID": "13b4cd12-1e4a-441a-9955-65448c6393c2",
          "departement_ID": "9c9573be-abe2-40a7-bfa4-c6beed1122bc",
          "departmentItem_ID": "7ae3c217-48bd-405e-9a4e-acf576033803",
          "iD": "59cea447-d42a-4572-ad19-22912590d8e3",
          "site_ID": "dd5553eb-5202-44b9-a98f-7104aeabb241",
          "siteCustomer_ID": "795ead41-3c86-4f91-acc1-62377df9b384",
          "sticker_ID": "9e12325c-98b8-4bda-9464-dcd2cda441b0"
        },
        {
          "active": true,
          "contract_ID": "d7090a73-3208-411f-812e-d42aa722fac7",
          "contractItem_ID": "13b4cd12-1e4a-441a-9955-65448c6393c2",
          "departement_ID": "9c9573be-abe2-40a7-bfa4-c6beed1122bc",
          "departmentItem_ID": "7ae3c217-48bd-405e-9a4e-acf576033803",
          "iD": "59cea447-d42a-4572-ad19-22912590d8e3",
          "site_ID": "dd5553eb-5202-44b9-a98f-7104aeabb241",
          "siteCustomer_ID": "795ead41-3c86-4f91-acc1-62377df9b384",
          "sticker_ID": "9e12325c-98b8-4bda-9464-dcd2cda441b0"
        }
      ],
      "details": [],
      "active": true,
      "code": "sample string 2",
      "id": "8d5a0e8c-368f-417f-a1f7-59a64bf7292a",
      "stickerType_ID": "0751be52-7e6d-4332-8814-ab215b2410c7",
      "stickerRelation_IDs": [
        "cb3926a7-abc6-4d8f-9d1d-af9935924b92",
        "fb56fff1-f573-4b43-94ba-9b6fbe712247"
      ],
      "site_ID": "ecf92852-9a01-43ef-9b5d-fc0d21ec3994"
    },
    "sticker_ID": "32a4f01c-13bf-4db0-95dc-88491ce400ea",
    "stickerField_ID": "a8ea63b8-ca8d-4296-bf6c-3738f478df21",
    "stringLength": 1,
    "stringStart": 1,
    "zoneNumber": 11
  }
]

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.StickerViewModel' 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.StickerViewModel' 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 'List`1'.

Response Information

Resource Description

None.