GET api/BookingRequests/{id}/CheckResourceRestrictions
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
Body Parameters
None.
Response Information
Resource Description
BookingRequestEditRestrictions| Name | 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": "783e3fce-1b00-4379-a56d-c793f2908b5d",
"EditRestrictions": [
{
"MessageKey": "sample string 1",
"Message": "sample string 2",
"AffectedResources": [
{
"Identity": "7dbff10f-c30b-4dd1-8dc1-d822602a7667",
"Name": "sample string 2"
},
{
"Identity": "7dbff10f-c30b-4dd1-8dc1-d822602a7667",
"Name": "sample string 2"
}
],
"AllowEdit": true,
"AppliesToSingleOccurrenceUpdateOnly": true
},
{
"MessageKey": "sample string 1",
"Message": "sample string 2",
"AffectedResources": [
{
"Identity": "7dbff10f-c30b-4dd1-8dc1-d822602a7667",
"Name": "sample string 2"
},
{
"Identity": "7dbff10f-c30b-4dd1-8dc1-d822602a7667",
"Name": "sample string 2"
}
],
"AllowEdit": true,
"AppliesToSingleOccurrenceUpdateOnly": true
}
],
"RefittedResources": [
{
"ResourceTypeIdentity": "693210db-9642-434b-a1bf-f554aadddfb2",
"ResourceTypeName": "sample string 2",
"ExternalApplicationIdentity": "c7b79dd9-da64-4ddb-82a3-de544f739f5d",
"ResourceRestrictionIdentity": "e6fab529-1e42-42a7-bd8c-70585f59b98c",
"IsPrimary": true,
"Identity": "ad693aa6-3b65-48d2-8202-65b1cbe7b06f",
"Name": "sample string 7"
},
{
"ResourceTypeIdentity": "693210db-9642-434b-a1bf-f554aadddfb2",
"ResourceTypeName": "sample string 2",
"ExternalApplicationIdentity": "c7b79dd9-da64-4ddb-82a3-de544f739f5d",
"ResourceRestrictionIdentity": "e6fab529-1e42-42a7-bd8c-70585f59b98c",
"IsPrimary": true,
"Identity": "ad693aa6-3b65-48d2-8202-65b1cbe7b06f",
"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>7dbff10f-c30b-4dd1-8dc1-d822602a7667</d4p1:Identity>
<d4p1:Name>sample string 2</d4p1:Name>
</d4p1:NamedObject>
<d4p1:NamedObject>
<d4p1:Identity>7dbff10f-c30b-4dd1-8dc1-d822602a7667</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>7dbff10f-c30b-4dd1-8dc1-d822602a7667</d4p1:Identity>
<d4p1:Name>sample string 2</d4p1:Name>
</d4p1:NamedObject>
<d4p1:NamedObject>
<d4p1:Identity>7dbff10f-c30b-4dd1-8dc1-d822602a7667</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>783e3fce-1b00-4379-a56d-c793f2908b5d</Identity>
<RefittedResources>
<BookingResource>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">ad693aa6-3b65-48d2-8202-65b1cbe7b06f</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name>
<ExternalApplicationIdentity>c7b79dd9-da64-4ddb-82a3-de544f739f5d</ExternalApplicationIdentity>
<IsPrimary>true</IsPrimary>
<ResourceRestrictionIdentity>e6fab529-1e42-42a7-bd8c-70585f59b98c</ResourceRestrictionIdentity>
<ResourceTypeIdentity>693210db-9642-434b-a1bf-f554aadddfb2</ResourceTypeIdentity>
<ResourceTypeName>sample string 2</ResourceTypeName>
</BookingResource>
<BookingResource>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">ad693aa6-3b65-48d2-8202-65b1cbe7b06f</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name>
<ExternalApplicationIdentity>c7b79dd9-da64-4ddb-82a3-de544f739f5d</ExternalApplicationIdentity>
<IsPrimary>true</IsPrimary>
<ResourceRestrictionIdentity>e6fab529-1e42-42a7-bd8c-70585f59b98c</ResourceRestrictionIdentity>
<ResourceTypeIdentity>693210db-9642-434b-a1bf-f554aadddfb2</ResourceTypeIdentity>
<ResourceTypeName>sample string 2</ResourceTypeName>
</BookingResource>
</RefittedResources>
</BookingRequestEditRestrictions>