Method UserTableUpdateTable
UserTableUpdateTable(String, UserTableInfoContract)
Updates a user table
Declaration
void UserTableUpdateTable(string connectionId, UserTableInfoContract userTableInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
UserTableInfoContract | userTableInfo | Set the userTable information. |
Examples
POST https://YourServerName/InfoShare/Json/UserTable/UserTableUpdateTable
This example creates a user table with four columns.{
"connectionId": "5950defc-254f-4972-a5c2-04c2353b5f7f",
"userTableInfo": {
"AutoIncrementColumn":"Id",
"Columns": [
{ "AutoIncrement":true, "CharacterLength":null, "DataLength":null, "DataType":"bigint", "IsNullable":false, "Name":"Id", "NumericPrecision":19, "NumericScale":0, "OrdinalPosition":1 },
{ "AutoIncrement":false, "CharacterLength":"max", "DataLength":null, "DataType":"nvarchar", "IsNullable":true, "Name":"column1", "NumericPrecision":null, "NumericScale":null, "OrdinalPosition":2 },
{ "AutoIncrement":false, "CharacterLength":"max", "DataLength":null, "DataType":"nvarchar", "IsNullable":true, "Name":"column2", "NumericPrecision":null, "NumericScale":null, "OrdinalPosition":3 },
{ "AutoIncrement":false, "CharacterLength":"max", "DataLength":null, "DataType":"nvarchar", "IsNullable":true, "Name":"column3", "NumericPrecision":null, "NumericScale":null, "OrdinalPosition":4 },
{ "AutoIncrement":false, "CharacterLength":"max", "DataLength":null, "DataType":"nvarchar", "IsNullable":true, "Name":"column4", "NumericPrecision":null, "NumericScale":null, "OrdinalPosition":5 }
],
"TableName":"AutoTest2",
"ProtectionDomainId": "1bafdbc6-ac0f-4a2d-bade-a5ed1fb6188b",
"UserTableAccesRightsEnumList": [ { "Create", "Delete", "Read", "Edit", "ChangeDefinition", } ]
}
}
Response:
{}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not enough rights ({accessOperationName}, {accessOperationId}) (10071) |