POST api/contractapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
ContractViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| selected_nameplate_id | globally unique identifier |
None. |
|
| selected_sticker_id | globally unique identifier |
None. |
|
| washing_processes | Collection of WashingProcessViewModel |
None. |
|
| active | boolean |
Required |
|
| certificate_type_id | globally unique identifier |
Required |
|
| code | integer |
None. |
|
| delay_between_scans | integer |
None. |
|
| id | globally unique identifier |
None. |
|
| internal_reference | string |
String length: inclusive between 0 and 50 |
|
| item_wash_max | integer |
None. |
|
| language_code | string |
Required String length: inclusive between 0 and 10 |
|
| name | string |
Required String length: inclusive between 0 and 100 |
|
| packaging_type_id | globally unique identifier |
Required |
|
| packing_type_id | globally unique identifier |
Required |
|
| particles_control | boolean |
Required |
|
| peremption_month | integer |
None. |
|
| peremption_print_cleanroom | boolean |
Required |
|
| peremption_print_date | boolean |
Required |
|
| peremption_print_expedition | boolean |
Required |
|
| permanent_management | boolean |
Required |
|
| pool_id | globally unique identifier |
None. |
|
| remark | string |
None. |
|
| site_customer_id | globally unique identifier |
Required |
|
| sorting_type_id | globally unique identifier |
Required |
|
| type | string |
Required String length: inclusive between 0 and 1 |
Request Formats
application/json, text/json
Sample:
{
"selected_nameplate_id": "7ee47621-71d1-4e9f-8572-569c5ab27cb5",
"selected_sticker_id": "c58db2f8-581d-47f4-a753-e91043ccc4b1",
"washing_processes": [
{
"descriptions": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"active": true,
"code": "sample string 2",
"id": "6ffa8664-5a06-44e3-a5f9-2c43596ea232",
"site_id": "35ad3f54-f83a-4bf9-a093-529d06099733"
},
{
"descriptions": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"active": true,
"code": "sample string 2",
"id": "6ffa8664-5a06-44e3-a5f9-2c43596ea232",
"site_id": "35ad3f54-f83a-4bf9-a093-529d06099733"
}
],
"active": true,
"certificate_type_id": "d6cf45cf-b15d-4e91-92e7-2f029ee495da",
"code": 1,
"delay_between_scans": 1,
"id": "ced0c7b7-52b2-4ffe-b172-3709c9812a2a",
"internal_reference": "sample string 4",
"item_wash_max": 1,
"language_code": "sample string 5",
"name": "sample string 6",
"packaging_type_id": "596e8d8d-62a9-4e84-8ffa-24da1d2209ca",
"packing_type_id": "1503c700-d5bd-4d78-818e-795d60156b82",
"particles_control": true,
"peremption_month": 1,
"peremption_print_cleanroom": true,
"peremption_print_date": true,
"peremption_print_expedition": true,
"permanent_management": true,
"pool_id": "ad526f30-7364-474d-8656-7b3c7ca9e071",
"remark": "sample string 14",
"site_customer_id": "1151faef-99cd-41b7-b856-d6a887672e3c",
"sorting_type_id": "50a23baf-f01d-4cb5-b9cb-1c42ff118dab",
"type": "sample string 17"
}
application/xml, text/xml
Sample:
<contract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<active>true</active>
<certificate_type_id>d6cf45cf-b15d-4e91-92e7-2f029ee495da</certificate_type_id>
<code>1</code>
<delay_between_scans>1</delay_between_scans>
<id>ced0c7b7-52b2-4ffe-b172-3709c9812a2a</id>
<internal_reference>sample string 4</internal_reference>
<item_wash_max>1</item_wash_max>
<language_code>sample string 5</language_code>
<name>sample string 6</name>
<packaging_type_id>596e8d8d-62a9-4e84-8ffa-24da1d2209ca</packaging_type_id>
<packing_type_id>1503c700-d5bd-4d78-818e-795d60156b82</packing_type_id>
<particles_control>true</particles_control>
<peremption_month>1</peremption_month>
<peremption_print_cleanroom>true</peremption_print_cleanroom>
<peremption_print_date>true</peremption_print_date>
<peremption_print_expedition>true</peremption_print_expedition>
<permanent_management>true</permanent_management>
<pool_id>ad526f30-7364-474d-8656-7b3c7ca9e071</pool_id>
<remark>sample string 14</remark>
<site_customer_id>1151faef-99cd-41b7-b856-d6a887672e3c</site_customer_id>
<sorting_type_id>50a23baf-f01d-4cb5-b9cb-1c42ff118dab</sorting_type_id>
<type>sample string 17</type>
<selected_nameplate_id>7ee47621-71d1-4e9f-8572-569c5ab27cb5</selected_nameplate_id>
<selected_sticker_id>c58db2f8-581d-47f4-a753-e91043ccc4b1</selected_sticker_id>
<washing_processes>
<washing_process>
<active>true</active>
<code>sample string 2</code>
<id>6ffa8664-5a06-44e3-a5f9-2c43596ea232</id>
<site_id>35ad3f54-f83a-4bf9-a093-529d06099733</site_id>
<descriptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</descriptions>
</washing_process>
<washing_process>
<active>true</active>
<code>sample string 2</code>
<id>6ffa8664-5a06-44e3-a5f9-2c43596ea232</id>
<site_id>35ad3f54-f83a-4bf9-a093-529d06099733</site_id>
<descriptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</descriptions>
</washing_process>
</washing_processes>
</contract>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"d0e153ed-44ff-46df-95c4-d01c1ea04367"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">d0e153ed-44ff-46df-95c4-d01c1ea04367</guid>