PUT api/Materials/CodingStandard/{class}/{family}

Create the Materials Coding Standard, class/family/subfamily

Request Information

URI Parameters

NameDescriptionTypeAdditional information
class

The class code when creating a family or subfamily

string

None.

family

The family code when creating a subfamily

string

None.

Body Parameters

The new class/family/subfamily

CodingStandard
NameDescriptionTypeAdditional information
Code

The new class/family/subfamily code

string

Matching regular expression pattern: ^[^\.]+$

Max length: 5

Min length: 1

Description

The description of class/family/subfamily

string

Required

Max length: 30

Request Formats

Sample:
{
  "Code": "sample string 1",
  "Description": "sample string 2"
}
Sample:
<CodingStandard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Materiais">
  <Code>sample string 1</Code>
  <Description>sample string 2</Description>
</CodingStandard>
Sample:

Sample not available.

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Returns the new class/family/subfamily code

string

Response 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--