GET api/BookingRequests/{id}/CheckResourceRestrictions
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
Required |
Body Parameters
None.
Response Information
Resource Description
BookingRequestEditRestrictionsName | Description | Type | Additional information |
---|---|---|---|
Identity | globally unique identifier |
None. |
|
EditRestrictions | Collection of BookingRequestEditRestriction |
None. |
|
RefittedResources | Collection of BookingResource |
None. |
Response Formats
application/json, text/json
Sample:
{ "Identity": "6b7f7b65-6c9a-4c10-b9e9-25edcedf392b", "EditRestrictions": [ { "MessageKey": "sample string 1", "Message": "sample string 2", "AffectedResources": [ { "Identity": "b9971526-2667-4d21-a134-82388762793a", "Name": "sample string 2" }, { "Identity": "b9971526-2667-4d21-a134-82388762793a", "Name": "sample string 2" } ], "AllowEdit": true, "AppliesToSingleOccurrenceUpdateOnly": true }, { "MessageKey": "sample string 1", "Message": "sample string 2", "AffectedResources": [ { "Identity": "b9971526-2667-4d21-a134-82388762793a", "Name": "sample string 2" }, { "Identity": "b9971526-2667-4d21-a134-82388762793a", "Name": "sample string 2" } ], "AllowEdit": true, "AppliesToSingleOccurrenceUpdateOnly": true } ], "RefittedResources": [ { "ResourceTypeIdentity": "954de4be-523d-4aec-81fe-1e06221fbbcb", "ResourceTypeName": "sample string 2", "ExternalApplicationIdentity": "f1794033-28b0-4f4b-928a-bfc358c1548a", "ResourceRestrictionIdentity": "c2ea6cde-a47c-4400-acb9-aa87376bf7f9", "IsPrimary": true, "Identity": "2fb9b171-8daf-4ff4-ae13-7629b09da624", "Name": "sample string 7" }, { "ResourceTypeIdentity": "954de4be-523d-4aec-81fe-1e06221fbbcb", "ResourceTypeName": "sample string 2", "ExternalApplicationIdentity": "f1794033-28b0-4f4b-928a-bfc358c1548a", "ResourceRestrictionIdentity": "c2ea6cde-a47c-4400-acb9-aa87376bf7f9", "IsPrimary": true, "Identity": "2fb9b171-8daf-4ff4-ae13-7629b09da624", "Name": "sample string 7" } ] }
application/xml, text/xml
Sample:
<BookingRequestEditRestrictions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <EditRestrictions> <BookingRequestEditRestriction> <AffectedResources xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:NamedObject> <d4p1:Identity>b9971526-2667-4d21-a134-82388762793a</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> <d4p1:NamedObject> <d4p1:Identity>b9971526-2667-4d21-a134-82388762793a</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> </AffectedResources> <AllowEdit>true</AllowEdit> <AppliesToSingleOccurrenceUpdateOnly>true</AppliesToSingleOccurrenceUpdateOnly> <Message>sample string 2</Message> <MessageKey>sample string 1</MessageKey> </BookingRequestEditRestriction> <BookingRequestEditRestriction> <AffectedResources xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:NamedObject> <d4p1:Identity>b9971526-2667-4d21-a134-82388762793a</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> <d4p1:NamedObject> <d4p1:Identity>b9971526-2667-4d21-a134-82388762793a</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> </AffectedResources> <AllowEdit>true</AllowEdit> <AppliesToSingleOccurrenceUpdateOnly>true</AppliesToSingleOccurrenceUpdateOnly> <Message>sample string 2</Message> <MessageKey>sample string 1</MessageKey> </BookingRequestEditRestriction> </EditRestrictions> <Identity>6b7f7b65-6c9a-4c10-b9e9-25edcedf392b</Identity> <RefittedResources> <BookingResource> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">2fb9b171-8daf-4ff4-ae13-7629b09da624</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name> <ExternalApplicationIdentity>f1794033-28b0-4f4b-928a-bfc358c1548a</ExternalApplicationIdentity> <IsPrimary>true</IsPrimary> <ResourceRestrictionIdentity>c2ea6cde-a47c-4400-acb9-aa87376bf7f9</ResourceRestrictionIdentity> <ResourceTypeIdentity>954de4be-523d-4aec-81fe-1e06221fbbcb</ResourceTypeIdentity> <ResourceTypeName>sample string 2</ResourceTypeName> </BookingResource> <BookingResource> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">2fb9b171-8daf-4ff4-ae13-7629b09da624</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name> <ExternalApplicationIdentity>f1794033-28b0-4f4b-928a-bfc358c1548a</ExternalApplicationIdentity> <IsPrimary>true</IsPrimary> <ResourceRestrictionIdentity>c2ea6cde-a47c-4400-acb9-aa87376bf7f9</ResourceRestrictionIdentity> <ResourceTypeIdentity>954de4be-523d-4aec-81fe-1e06221fbbcb</ResourceTypeIdentity> <ResourceTypeName>sample string 2</ResourceTypeName> </BookingResource> </RefittedResources> </BookingRequestEditRestrictions>