Method UpdatePropertyPageTemplate
UpdatePropertyPageTemplate(String, PropertyPageTemplateContract)
Update a property page template
Declaration
void UpdatePropertyPageTemplate(string connectionId, PropertyPageTemplateContract propertyPageTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
PropertyPageTemplateContract | propertyPageTemplate | PropertyPageTemplate to update |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdatePropertyPageTemplate
Example for update a property page template.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"propertyPageTemplate": {
"Id": "04be9b33-6ae0-e911-a94a-00155d290a08",
"PropertyTemplates": [{
"PropertyTypeId": "01004008-38a7-11d8-a902-0050bf427e8f",
"Required": true,
"Visible": true,
"DefaultValue": "",
"Placeholder": null,
"CanEditDefaultValue": true,
"Index": 0
}, {
"PropertyTypeId": "2cdacc4e-15d0-e911-a93a-00155d290a08",
"Required": false,
"Visible": true,
"DefaultValue": "",
"Placeholder": null,
"CanEditDefaultValue": true,
"Index": 1 }],
"Name": {
"Values": [{
"Text": "test",
"Culture": "de" }, {
"Text": "test",
"Culture": "en" }] } }
}
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 page template not found {propertyPageTemplateId} (10094) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |