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": "ff7d6436-0287-43ed-969b-3c7720bc9239",
      "isStatic": true,
      "stickerType_ID": "176ce470-60e9-474d-8d86-4abda6b693ed",
      "technicalDescription": "sample string 6"
    },
    "active": true,
    "backgroundColor": "sample string 2",
    "bold": true,
    "fontSize": 4,
    "foregroundColor": "sample string 5",
    "id": "475dca17-c8eb-4fd6-ac4a-aade6f412534",
    "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": "4ef59914-839b-4bf8-be60-f6e3227b7654",
        "technicalDescription": "sample string 3",
        "active": true
      },
      "relations": [
        {
          "active": true,
          "contract_ID": "281f67fb-7bb6-4c7e-985e-e443d02a6596",
          "contractItem_ID": "7f32a4c5-797c-4355-8e81-3d90e14464df",
          "departement_ID": "4bca5b8f-1eec-40fa-8125-1810985b9b01",
          "departmentItem_ID": "f6fcf2cd-2a1f-44ce-9e02-82927166e120",
          "iD": "7f26adde-9fbb-427f-9948-f2c22599c1f3",
          "site_ID": "52c80049-9999-4168-9611-b5e7720fc3df",
          "siteCustomer_ID": "09e7066d-ba8c-41fb-ba72-c05ccf0bcff4",
          "sticker_ID": "5523725e-f331-44e8-b0e2-ab74490455cb"
        },
        {
          "active": true,
          "contract_ID": "281f67fb-7bb6-4c7e-985e-e443d02a6596",
          "contractItem_ID": "7f32a4c5-797c-4355-8e81-3d90e14464df",
          "departement_ID": "4bca5b8f-1eec-40fa-8125-1810985b9b01",
          "departmentItem_ID": "f6fcf2cd-2a1f-44ce-9e02-82927166e120",
          "iD": "7f26adde-9fbb-427f-9948-f2c22599c1f3",
          "site_ID": "52c80049-9999-4168-9611-b5e7720fc3df",
          "siteCustomer_ID": "09e7066d-ba8c-41fb-ba72-c05ccf0bcff4",
          "sticker_ID": "5523725e-f331-44e8-b0e2-ab74490455cb"
        }
      ],
      "details": [],
      "active": true,
      "code": "sample string 2",
      "id": "dbb81c7c-6c32-411b-8f56-53f26a60fa0d",
      "stickerType_ID": "59d6bf59-f2e4-4209-988d-8a91c7696352",
      "stickerRelation_IDs": [
        "8f5b86aa-f686-4dc0-b531-ba861c1a7bd6",
        "a3b826e3-ed3c-4706-b134-a13a3ed3e6db"
      ],
      "site_ID": "e9daa30c-c555-48b7-8c49-dbbf6846eacf"
    },
    "sticker_ID": "2e022ac1-50d9-4854-9ec5-0749a64f6ef6",
    "stickerField_ID": "bbf7ae40-0902-46af-95fc-d8ffb5a12965",
    "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": "ff7d6436-0287-43ed-969b-3c7720bc9239",
      "isStatic": true,
      "stickerType_ID": "176ce470-60e9-474d-8d86-4abda6b693ed",
      "technicalDescription": "sample string 6"
    },
    "active": true,
    "backgroundColor": "sample string 2",
    "bold": true,
    "fontSize": 4,
    "foregroundColor": "sample string 5",
    "id": "475dca17-c8eb-4fd6-ac4a-aade6f412534",
    "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": "4ef59914-839b-4bf8-be60-f6e3227b7654",
        "technicalDescription": "sample string 3",
        "active": true
      },
      "relations": [
        {
          "active": true,
          "contract_ID": "281f67fb-7bb6-4c7e-985e-e443d02a6596",
          "contractItem_ID": "7f32a4c5-797c-4355-8e81-3d90e14464df",
          "departement_ID": "4bca5b8f-1eec-40fa-8125-1810985b9b01",
          "departmentItem_ID": "f6fcf2cd-2a1f-44ce-9e02-82927166e120",
          "iD": "7f26adde-9fbb-427f-9948-f2c22599c1f3",
          "site_ID": "52c80049-9999-4168-9611-b5e7720fc3df",
          "siteCustomer_ID": "09e7066d-ba8c-41fb-ba72-c05ccf0bcff4",
          "sticker_ID": "5523725e-f331-44e8-b0e2-ab74490455cb"
        },
        {
          "active": true,
          "contract_ID": "281f67fb-7bb6-4c7e-985e-e443d02a6596",
          "contractItem_ID": "7f32a4c5-797c-4355-8e81-3d90e14464df",
          "departement_ID": "4bca5b8f-1eec-40fa-8125-1810985b9b01",
          "departmentItem_ID": "f6fcf2cd-2a1f-44ce-9e02-82927166e120",
          "iD": "7f26adde-9fbb-427f-9948-f2c22599c1f3",
          "site_ID": "52c80049-9999-4168-9611-b5e7720fc3df",
          "siteCustomer_ID": "09e7066d-ba8c-41fb-ba72-c05ccf0bcff4",
          "sticker_ID": "5523725e-f331-44e8-b0e2-ab74490455cb"
        }
      ],
      "details": [],
      "active": true,
      "code": "sample string 2",
      "id": "dbb81c7c-6c32-411b-8f56-53f26a60fa0d",
      "stickerType_ID": "59d6bf59-f2e4-4209-988d-8a91c7696352",
      "stickerRelation_IDs": [
        "8f5b86aa-f686-4dc0-b531-ba861c1a7bd6",
        "a3b826e3-ed3c-4706-b134-a13a3ed3e6db"
      ],
      "site_ID": "e9daa30c-c555-48b7-8c49-dbbf6846eacf"
    },
    "sticker_ID": "2e022ac1-50d9-4854-9ec5-0749a64f6ef6",
    "stickerField_ID": "bbf7ae40-0902-46af-95fc-d8ffb5a12965",
    "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.