POST api/sticker/duplicate

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": "888791c7-ebd2-4dbd-b6aa-96c8540239fe",
    "technicalDescription": "sample string 3",
    "active": true
  },
  "relations": [
    {
      "active": true,
      "contract_ID": "8f9bc873-2fcd-42e5-bd58-e39e5a074c3c",
      "contractItem_ID": "a10e72b9-ce9a-4706-8c69-a9f7d5330126",
      "departement_ID": "0a88571f-aee4-4ad1-8780-4a1e83e52def",
      "departmentItem_ID": "4581452e-61ff-49e8-ae62-84bb4d47e588",
      "iD": "75d43f9f-3d2b-49df-adc5-b1f1b0fdb474",
      "site_ID": "b408b915-01e9-4146-853b-49e91e459c46",
      "siteCustomer_ID": "80d693b1-2a40-48ca-b961-841d0226417f",
      "sticker_ID": "e60923f8-8518-4a10-91b6-f472a3d5c947"
    },
    {
      "active": true,
      "contract_ID": "8f9bc873-2fcd-42e5-bd58-e39e5a074c3c",
      "contractItem_ID": "a10e72b9-ce9a-4706-8c69-a9f7d5330126",
      "departement_ID": "0a88571f-aee4-4ad1-8780-4a1e83e52def",
      "departmentItem_ID": "4581452e-61ff-49e8-ae62-84bb4d47e588",
      "iD": "75d43f9f-3d2b-49df-adc5-b1f1b0fdb474",
      "site_ID": "b408b915-01e9-4146-853b-49e91e459c46",
      "siteCustomer_ID": "80d693b1-2a40-48ca-b961-841d0226417f",
      "sticker_ID": "e60923f8-8518-4a10-91b6-f472a3d5c947"
    }
  ],
  "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": "1d249e2c-42c3-4d72-8404-38a793987190",
        "isStatic": true,
        "stickerType_ID": "0f0a007e-f4c1-4a6d-8565-756c91c8390a",
        "technicalDescription": "sample string 6"
      },
      "active": true,
      "backgroundColor": "sample string 2",
      "bold": true,
      "fontSize": 4,
      "foregroundColor": "sample string 5",
      "id": "d9b73e3d-9ffd-4b5f-b19c-1ea20d469432",
      "italic": true,
      "staticValue": "sample string 8",
      "sticker_ID": "778b2441-b7ff-4b8a-8600-744b5cd563d0",
      "stickerField_ID": "57a54ee0-b17d-4248-b74f-fabcb24b246b",
      "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": "1d249e2c-42c3-4d72-8404-38a793987190",
        "isStatic": true,
        "stickerType_ID": "0f0a007e-f4c1-4a6d-8565-756c91c8390a",
        "technicalDescription": "sample string 6"
      },
      "active": true,
      "backgroundColor": "sample string 2",
      "bold": true,
      "fontSize": 4,
      "foregroundColor": "sample string 5",
      "id": "d9b73e3d-9ffd-4b5f-b19c-1ea20d469432",
      "italic": true,
      "staticValue": "sample string 8",
      "sticker_ID": "778b2441-b7ff-4b8a-8600-744b5cd563d0",
      "stickerField_ID": "57a54ee0-b17d-4248-b74f-fabcb24b246b",
      "stringLength": 1,
      "stringStart": 1,
      "zoneNumber": 11
    }
  ],
  "active": true,
  "code": "sample string 2",
  "id": "abc411f6-bb13-4bfd-b3d8-db89a802c0fa",
  "stickerType_ID": "bca4ec35-b4a3-42c1-87d3-f911b9f95ee4",
  "stickerRelation_IDs": [
    "4ecb7448-9cc1-414e-afed-3c59c31ccd10",
    "ce7ddc17-19c2-4e9f-9930-a0f10d54c7e3"
  ],
  "site_ID": "989979ea-1d65-4401-8412-c173414a031b"
}

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:
"1544d2e9-c4ec-4fa5-b0c9-b7a03283b937"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1544d2e9-c4ec-4fa5-b0c9-b7a03283b937</guid>