Method UpdateCloudDocumentType
UpdateCloudDocumentType(String, CloudDocumentTypeContract)
Update a cloud document type
Declaration
void UpdateCloudDocumentType(string connectionId, CloudDocumentTypeContract cloudDocumentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
CloudDocumentTypeContract | cloudDocumentType | CloudDocumentType to update |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateCloudDocumentType
Example for update a cloud document type.{
"connectionId": "e08482f2-eb69-4693-b2c1-cdc87f641ec2",
"cloudDocumentType": {
"AdminRoleId": "00000000-0000-0000-0000-000000000000",
"DeleteRoleId": "00000000-0000-0000-0000-000000000000",
"FriendlyNames": [{
"PropertyTypeId": "01000a00-38a7-11d8-a902-0050bf427e8f",
"Name": {
"Values": [{
"Culture": "de" }] }}],
"Id": "37e19e5d-fee0-e911-a94b-00155d290a08",
"ImportTemplateId": "14df9e5d-fee0-e911-a94b-00155d290a08",
"Name": {
"Values": [{
"Culture": "de",
"Text": "Document type test" }] },
"ReadRoleId": "00000000-0000-0000-0000-000000000000",
"SearchFolderPath": {
"Culture": "en-US",
"FolderSystemId": "9762c061-b7cf-e911-a939-00155d290a08",
"Path": "cb62c061-b7cf-e911-a939-00155d290a08\\c3ae40de-1fd2-e911-a93c-00155d290a08
\\8bdf9e5d-fee0-e911-a94b-00155d290a08",
"PathGlobal": {
"Values": [{
"Culture": "de",
"Text": "Vorgang Suche\\Document type test" }, {
"Culture": "en",
"Text": "Process search\\Document type test" }] } },
"WriteRoleId": "00000000-0000-0000-0000-000000000000" }
}
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 | Root folder not found (10023) |
ServiceException | Cloud document type not found {cloudDocumentTypeId} (10093) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |