PUT api/Configuration/Functions
Create a new Function
Request Information
URI Parameters
None.
Body Parameters
The Function to create
FunctionPutName | Description | Type | Additional information |
---|---|---|---|
Code |
The new function code |
string |
Required Matching regular expression pattern: ^[^\.]+$ Max length: 20 |
Description |
The description of the function |
string |
Required Max length: 30 |
ParentCode |
The parent node code |
string |
Max length: 20 |
Request Formats
Sample:
{ "Code": "01", "Description": "Electromechanical", "ParentCode": "MAN" }
Sample:
<FunctionPut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <Code>01</Code> <Description>Electromechanical</Description> <ParentCode>MAN</ParentCode> </FunctionPut>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" 01 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" Electromechanical --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ParentCode" MAN --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
stringResponse Formats
Sample:
"sample string 1"
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--