Method UpdateSAPSchemaStore
UpdateSAPSchemaStore(String, SAPConfigContract)
Update SAP schema store
Declaration
void UpdateSAPSchemaStore(string connectionId, SAPConfigContract sapSchemaStore)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
SAPConfigContract | sapSchemaStore | SAP schema store to update |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateSAPSchemaStore
Example for update SAP schema store.{
"connectionId": "2e926e26-4e7f-4bf5-be15-673af621819e",
"sapSchemaStore": {
"AddAnnotations": false,
"AddOverlays": false,
"Culture": "de-CH",
"ExtensionMustExist": false,
"ImportTemplateId": "00000000-0000-0000-0000-000000000000",
"IndexDownloadConfigs": [{
"PropertyMappings": [],
"RepositoryName": "t1" }],
"MimeTypeMappingMustExist": true,
"MimeTypeMappings": [{
"FileExtension": "pdf",
"Id": "8fff140c-02e1-e911-a94b-00155d290a08",
"MimeType": "application/pdf" }, {
"FileExtension": "tif",
"Id": "96ff140c-02e1-e911-a94b-00155d290a08",
"MimeType": "image/tiff" }, {
"FileExtension": "jpg",
"Id": "ffff140c-02e1-e911-a94b-00155d290a08",
"MimeType": "image/jpeg" }, {
"FileExtension": "pcx",
"Id": "0600150c-02e1-e911-a94b-00155d290a08",
"MimeType": "image/pcx" }, {
"FileExtension": "tiff",
"Id": "0d00150c-02e1-e911-a94b-00155d290a08",
"MimeType": "image/tiff" }, {
"FileExtension": "htm",
"Id": "1400150c-02e1-e911-a94b-00155d290a08",
"MimeType": "text/html" }, {
"FileExtension": "txt",
"Id": "1b00150c-02e1-e911-a94b-00155d290a08",
"MimeType": "text/plain" }],
"RepositoriesConfigurations": [],
"SAPBarcodePropertyId": "00000000-0000-0000-0000-000000000000",
"SAPBarcodeSyncPropertyId": "00000000-0000-0000-0000-000000000000",
"SAPDocumentPropertyId": "00000000-0000-0000-0000-000000000000",
"SAPRepositoryPropertyId": "00000000-0000-0000-0000-000000000000" }
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
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 | Repository Id already exists (10177) |
ServiceException | File extension already exists (10178) |
ServiceException | List of repositories contains duplicates with the same repository name and import template id: {0}, {1} (10281) |