Sample URI request
Get https://<appserver with domain>/<virtual_directory>/ Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/Attributes(<AttributeId>)?$expand=AttributeNls
Where ?$expand=AttributeNls is the query to retrieve Nls records along with the attribute.
Headers
Header name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/json |
Response
Element |
Description |
Type |
Notes |
---|---|---|---|
AttributeGroupName |
Identifies the attribute group which the current attribute is assigned to |
String |
Attribute group name must be specified in uppercase |
AttributeName |
Name of the new attribute |
String |
Attribute name must be specified in uppercase |
AttributeID |
A unique ID for the attributeID of the attribute |
Integer |
Generated by the software |
AttributeTypeID |
Integer |
Generated by the software |
|
Project |
The project or product group where you want to insert the attribute |
String |
|
DataType |
Attribute data type that you want to assign |
String |
|
Required |
Specifies if the new attribute is mandatory |
String |
Default value is ON |
Precision |
Digits after decimal point. The precision depends on the physical column that the attribute is assigned to. |
Integer |
|
MetrEngl |
Reference to conversion table |
String |
|
DataWidth |
Max data length of the field. The Length depends on the physical column that the attribute is assigned to. |
Integer |
The maximum width is 14, for character(attr_char), the maximum width is 255, and for Geom-in/Outs it is 60. |
FormWidth |
Size of display item in user interface |
String |
|
Unit |
Lookup unit |
String |
|
UnitID |
Integer |
||
NlsId |
Language identifier |
Integer |
|
LabelText |
Label of the attribute |
String |
|
HintText |
Hint text that you want to apply for the attribute |
String |
|
HelpText |
Help text for the attribute |
String |
Default is NULL |
NLS Independent |
Indicates if the attribute is NLS dependent or not |
String |
Default value is Y |
Response body
{
"@odata.context": "https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Projects('SDB')/Disciplines(5020)/Nls(1)/Attributes",
"value": [
{
"AttributeId": 17979,
"AttributeName": "ADD_ATTRIBUTE",
"AttributeTypeId": 5162,
"AttributeGroupName": "STR ATTR",
"Project": "SDB",
"DataType": "CHAR",
"Required": "ON",
"FormWidth": 13,
"DataWidth": 12,
"Precision": null,
"MetrEngl": "S.40.04.01",
"UnitId": 5282,
"Unit": "-",
"NLSIndependent" : "Y",
"AttributeNls@odata.context": "https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Projects('SDB')/Disciplines(5020)/Nls(1)/Attributes(17982)(17982)/AttributeNls",
"AttributeNls": [
{
"AttributeId": 17979,
"NlsId": 2,
"LabelText": "IDENT_CODE",
"HintText": "IDENT_CODE",
"HelpText": "Ident1"
},
{
"AttributeId": 17979,
"NlsId": 1,
"LabelText": "IDENT_CODE",
"HintText": "IDENT_CODE",
"HelpText": "IDENT_CODE"
}
]
}
]
}