Headers
Header name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/json |
Put body
Element |
Description |
Type |
Required |
---|---|---|---|
TableName |
Name of the table that you want to edit |
String |
Required |
TableType |
Identifies the table type which the current table is assigned to |
String |
Required |
NlsId |
Language Identifier |
Integer |
Required |
ShortDescription |
Short Descriptive |
String |
Required |
Description |
Descriptive Text |
String |
Required |
Sample request
https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/Tables(<TableId>)
Where TableId is the unique id to which you want to edit the table details.
{
"TableName": "EDIT_MYTABLE",
"TableType": "GEOM_S4010",
"TableNls": [
{
"NlsId": 1,
"ShortDescription": "MY_SD_EDIT_NLS",
"Description": "MY-D"
}
]
}
Response
Element |
Description |
Type |
Notes |
---|---|---|---|
TableId |
A unique ID for the table. |
Integer |
Generated by the software |
Project |
The project or product group from where the table is retrieved. |
String |
|
TableName |
Name of the table |
String |
|
TableTypeId |
A unique ID for the table type. |
Integer |
Generated by the software |
TableType |
Identifies the table type which the current table is assigned to. |
String |
|
NlsId |
Language identifier |
Integer |
Required |
ShortDescription |
Short description of the table |
String |
Required |
Description |
Description of the table |
String |
Required |
Use the following sample GET method to view the associated attributes and the Nls that you have created:
GET https://<appserver with domain>/<virtual_directory>/Srd/Projects('SDB')/Disciplines(5020)/Nls(1)/Tables(<TableId>)?$expand=TableAttributes,TableNls
Where ?$expand=TableAttributes,TableNls is the query to retrieve the associated Nls records along with the table details.
Sample response
{
"@odata.context": "https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Projects('SDB')/Disciplines(5020)/Nls(1)/Tables/$entity",
"TableId": 11120,
"Project": "SDB",
"TableName": "EDIT_MYTABLE",
"TableTypeId": 5082,
"TableType": "GEOM_S4010",
}