POST api/decontaminationunitlogtypeapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

DecontaminationUnitLogTypeViewModel
NameDescriptionTypeAdditional information
descriptions

Dictionary of string [key] and string [value]

None.

short_names

Dictionary of string [key] and string [value]

None.

id

globally unique identifier

None.

code

integer

Required

technical_short_name

string

Required

String length: inclusive between 0 and 10

technical_description

string

Required

String length: inclusive between 0 and 100

garment_status_id

globally unique identifier

None.

active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "descriptions": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "short_names": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "id": "c78b40c2-58a4-4735-b798-9e7e1a5e76f4",
  "code": 2,
  "technical_short_name": "sample string 3",
  "technical_description": "sample string 4",
  "garment_status_id": "90fb654e-661b-4dcd-8d63-7363cf201a80",
  "active": true
}

application/xml, text/xml

Sample:
<decontamination_unit_log_type xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <code>2</code>
  <garment_status_id>90fb654e-661b-4dcd-8d63-7363cf201a80</garment_status_id>
  <id>c78b40c2-58a4-4735-b798-9e7e1a5e76f4</id>
  <technical_description>sample string 4</technical_description>
  <technical_short_name>sample string 3</technical_short_name>
  <descriptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </descriptions>
  <short_names xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </short_names>
</decontamination_unit_log_type>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"85b93725-64d4-4f9a-ae1b-42ddf6b68012"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">85b93725-64d4-4f9a-ae1b-42ddf6b68012</guid>