PUT api/Items/{item}
Create a new child Item
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
item |
The Father asset |
string |
Required |
Body Parameters
ChildAssetPutName | Description | Type | Additional information |
---|---|---|---|
Description |
The Item description |
string |
Required Max length: 150 |
Type |
The Item Type code |
string |
Required Max length: 5 |
Number |
If supplied, this will set the ManWinWin structured code |
integer |
Equal or above: 0 |
Date |
|
date |
Required |
Unit |
Default: Hours |
Unit |
None. |
User1 |
If supplied and Number is empty, this will be the Item code |
string |
Max length: 30 |
User2 |
If supplied and User1 and Number are empty, this will be the Item code |
string |
Max length: 30 |
CalculatedADR |
If true, the ADR is automatically calculated when a new Running Record is made |
boolean |
None. |
Picture |
The picture file name and location. |
string |
Matching regular expression pattern: (?i).+\.(jpg|jpeg|gif|bmp|png|tif|wmf)$ Max length: 255 |
Location |
The Location code |
string |
Max length: 20 |
Specifications |
|
Collection of Specification |
No duplicate values on: Number |
Request Formats
{ "Description": "sample string 1", "Type": "sample string 2", "Number": 1, "Date": "2024-11-14T16:27:09.0800459+00:00", "Unit": "Cycles", "User1": "sample string 3", "User2": "sample string 4", "CalculatedADR": true, "Picture": "sample string 6", "Location": "sample string 7", "Specifications": [ { "Number": 1, "Value": "sample string 2" }, { "Number": 1, "Value": "sample string 2" } ] }
<ChildAssetPut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parque"> <CalculatedADR>true</CalculatedADR> <Date>2024-11-14T16:27:09.0800459+00:00</Date> <Description>sample string 1</Description> <Location>sample string 7</Location> <Number>1</Number> <Picture>sample string 6</Picture> <Specifications> <Specification> <Number>1</Number> <Value>sample string 2</Value> </Specification> <Specification> <Number>1</Number> <Value>sample string 2</Value> </Specification> </Specifications> <Type>sample string 2</Type> <Unit>Cycles</Unit> <User1>sample string 3</User1> <User2>sample string 4</User2> </ChildAssetPut>
Sample not available.
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Type" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Number" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Date" 2024-11-14T16:27:09.0800459+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Unit" Cycles --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="User1" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="User2" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CalculatedADR" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Picture" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Location" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[0].Number" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[0].Value" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[1].Number" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[1].Value" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
Returns the created Item Code
stringResponse Formats
"sample string 1"
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--