Method UpdatePropertyType
UpdatePropertyType(String, PropertyTypeContract)
Update a property type
Declaration
void UpdatePropertyType(string connectionId, PropertyTypeContract propertyType)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
PropertyTypeContract | propertyType | PropertyType to update |
Remarks
For system properties you can not set this flags: Active, Obsolete, Searchable
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdatePropertyType
Example for update a property type.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"propertyType": {
"Id": "daab41a4-69e0-e911-a94a-00155d290a08",
"Active": true,
"Configuration": {
"StringMaximumLength": 100,
"StringCaseSensitive": true,
"NumberMaximumDigits": 10,
"NumberMaximumDigitsInternal": 10,
"NumberMaximumDecimals": 0,
"NumberMaximumDecimalsInternal": 0 },
"Searchable": true,
"Name": {
"Values": [{
"Text": "test",
"Culture": "de" }, {
"Text": "test",
"Culture": "en" }] },
"UserDescription": "TestDescription",
"PropertyTypeCategoryId": "01004016-38a7-11d8-a902-0050bf427e8f",
"PropertyTypePluginTypeEnum": "String"
}
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Name is not unique for culture ({culture}): {name} (10066) |
ServiceException | Property type not found {propertyTypeId} (10034) |
ServiceException | Invalid Input {parameterValue} for {parmaterName} (10118) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Can not delete or deactivate property {propertyTypeId} because it is still in use in {name} {folderId} (10225) |
ServiceException | Can not delete or deactivate a system property {propertyTypeId} (10227) |
ServiceException | Can not delete or deactivate property {propertyTypeId}, because it is still assigned to dossier config {dossierConfigId} (10337) |
ServiceException | EnumConfiguration list does not match (10236) |
ServiceException | Not allowed (10014) |
ServiceException | Input contains invalid characters (10255) |