Method UpdateProtectionDomain
UpdateProtectionDomain(String, ProtectionDomainContract)
Update a protection domain
Declaration
void UpdateProtectionDomain(string connectionId, ProtectionDomainContract protectionDomain)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
ProtectionDomainContract | protectionDomain | The protection domain to update |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateProtectionDomain
Example for update a protection domain.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"protectionDomain": {
"Id": "b20f34e2-64e0-e911-a94a-00155d290a08"
"Name": {
"Values": [{
"Culture": "de",
"Text": "PapierkorbNew" }, {
"Culture": "en",
"Text": "Paper binNew" }] },
"RoleIds": ["c40f34e2-64e0-e911-a94a-00155d290a99"] }
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Protection domain not found {protectionDomainId} (10036) |
ServiceException | Name is not unique for culture ({culture}): {name} (10066) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |