Method CreatePropertyType
CreatePropertyType(String, PropertyTypeContract)
Create a property type
Declaration
string CreatePropertyType(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 create |
Returns
Type | Description |
---|---|
System.String | The created property type id |
Examples
POST http://YourServerName/InfoShare/Json/Common/CreatePropertyType
Example for create a property type.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"propertyType": {
"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:
{
"CreatePropertyTypeResult": "daab41a4-69e0-e911-a94a-00155d290a08"
}
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 | Object with id {id} already exists (10078) |
ServiceException | Property plugin type not found {propertyPluginType} (10095) |
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 | Input contains invalid characters (10255) |