POST api/TablesManagement/ADUTraits?pType={pType}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pType | string |
Required |
Body Parameters
Trait| Name | Description | Type | Additional information |
|---|---|---|---|
| trait_code | integer |
None. |
|
| trait_type_code | integer |
Required |
|
| trait_name | string |
Required String length: inclusive between 0 and 30 |
|
| active | string |
Required Matching regular expression pattern: ^[yn]{1}$ String length: inclusive between 0 and 1 |
Request Formats
application/json, text/json
Sample:
{
"trait_code": 1,
"trait_type_code": 2,
"trait_name": "sample string 3",
"active": "sample string 4"
}
application/xml, text/xml
Sample:
<Trait xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog"> <active>sample string 4</active> <trait_code>1</trait_code> <trait_name>sample string 3</trait_name> <trait_type_code>2</trait_type_code> </Trait>
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
Trait| Name | Description | Type | Additional information |
|---|---|---|---|
| trait_code | integer |
None. |
|
| trait_type_code | integer |
Required |
|
| trait_name | string |
Required String length: inclusive between 0 and 30 |
|
| active | string |
Required Matching regular expression pattern: ^[yn]{1}$ String length: inclusive between 0 and 1 |
Response Formats
application/json, text/json
Sample:
{
"trait_code": 1,
"trait_type_code": 2,
"trait_name": "sample string 3",
"active": "sample string 4"
}
application/xml, text/xml
Sample:
<Trait xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog"> <active>sample string 4</active> <trait_code>1</trait_code> <trait_name>sample string 3</trait_name> <trait_type_code>2</trait_type_code> </Trait>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.