Method UpdateProtectionDomains
UpdateProtectionDomains(String, List<ProtectionDomainContract>)
Update a list of protection domains
Declaration
void UpdateProtectionDomains(string connectionId, List<ProtectionDomainContract> protectionDomains)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.Collections.Generic.List<ProtectionDomainContract> | protectionDomains | A list of protection domains to be updated |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateProtectionDomains
This example updates a list of two protection domains. To each protection domain a role is assigned.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"protectionDomains": [{
"Id": "b20f34e2-64e0-e911-a94a-00155d290a08"
"Name": {
"Values": [{
"Culture": "de",
"Text": "Papierkorb1" }, {
"Culture": "en",
"Text": "Paperbin1" }] },
"RoleIds": ["c40f34e2-64e0-e911-a94a-00155d290a49"]
}, {
"Id": "a20f34e2-64e0-e911-a94a-00155d290a08"
"Name": {
"Values": [{
"Culture": "de",
"Text": "Papierkorb2" }, {
"Culture": "en",
"Text": "Paperbin2" }] },
"RoleIds": ["c40f14e4-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) |
ServiceException | Error occurred while processing {protection domain} object {protectionDomains[i].Id} (10203) |