GET api/{bookingTypeIdentity}/Rules
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bookingTypeIdentity | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of BookingRuleType| Name | Description | Type | Additional information |
|---|---|---|---|
| Properties | Collection of BookingRuleTypeProperty |
None. |
|
| RunOnUpdateAsCreate | boolean |
None. |
|
| RunOnCreateType | RuleActionType |
None. |
|
| RunOnUpdateType | RuleActionType |
None. |
|
| RunOnDeleteType | RuleActionType |
None. |
|
| RuleGroupRequiresOneValidOnly | boolean |
None. |
|
| RequiresBookingTypeIdentity | boolean |
None. |
|
| Identity | globally unique identifier |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Properties": [
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"ValueChoicesWithId": [
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
},
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
}
],
"Identity": "f137b030-bc1f-4e5d-869c-72bd6084cda2",
"StartRange": true,
"EndRange": true
},
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"ValueChoicesWithId": [
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
},
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
}
],
"Identity": "f137b030-bc1f-4e5d-869c-72bd6084cda2",
"StartRange": true,
"EndRange": true
}
],
"RunOnUpdateAsCreate": true,
"RunOnCreateType": 0,
"RunOnUpdateType": 0,
"RunOnDeleteType": 0,
"RuleGroupRequiresOneValidOnly": true,
"RequiresBookingTypeIdentity": true,
"Identity": "5ab61ef4-1f6b-4359-82b4-9082a69d78ab",
"Name": "sample string 5"
},
{
"Properties": [
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"ValueChoicesWithId": [
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
},
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
}
],
"Identity": "f137b030-bc1f-4e5d-869c-72bd6084cda2",
"StartRange": true,
"EndRange": true
},
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"ValueChoicesWithId": [
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
},
{
"Identity": "1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0",
"Name": "sample string 2"
}
],
"Identity": "f137b030-bc1f-4e5d-869c-72bd6084cda2",
"StartRange": true,
"EndRange": true
}
],
"RunOnUpdateAsCreate": true,
"RunOnCreateType": 0,
"RunOnUpdateType": 0,
"RunOnDeleteType": 0,
"RuleGroupRequiresOneValidOnly": true,
"RequiresBookingTypeIdentity": true,
"Identity": "5ab61ef4-1f6b-4359-82b4-9082a69d78ab",
"Name": "sample string 5"
}
]
application/xml, text/xml
Sample:
<ArrayOfBookingRuleType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model">
<BookingRuleType>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">5ab61ef4-1f6b-4359-82b4-9082a69d78ab</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 5</Name>
<Properties>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>f137b030-bc1f-4e5d-869c-72bd6084cda2</Identity>
<Name>sample string 1</Name>
<StartRange>true</StartRange>
<ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</ValueChoices>
<ValueChoicesWithId xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
</ValueChoicesWithId>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>f137b030-bc1f-4e5d-869c-72bd6084cda2</Identity>
<Name>sample string 1</Name>
<StartRange>true</StartRange>
<ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</ValueChoices>
<ValueChoicesWithId xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
</ValueChoicesWithId>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
</Properties>
<RequiresBookingTypeIdentity>true</RequiresBookingTypeIdentity>
<RuleGroupRequiresOneValidOnly>true</RuleGroupRequiresOneValidOnly>
<RunOnCreateType>Never</RunOnCreateType>
<RunOnDeleteType>Never</RunOnDeleteType>
<RunOnUpdateAsCreate>true</RunOnUpdateAsCreate>
<RunOnUpdateType>Never</RunOnUpdateType>
</BookingRuleType>
<BookingRuleType>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">5ab61ef4-1f6b-4359-82b4-9082a69d78ab</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 5</Name>
<Properties>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>f137b030-bc1f-4e5d-869c-72bd6084cda2</Identity>
<Name>sample string 1</Name>
<StartRange>true</StartRange>
<ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</ValueChoices>
<ValueChoicesWithId xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
</ValueChoicesWithId>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>f137b030-bc1f-4e5d-869c-72bd6084cda2</Identity>
<Name>sample string 1</Name>
<StartRange>true</StartRange>
<ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>sample string 1</d5p1:string>
<d5p1:string>sample string 2</d5p1:string>
</ValueChoices>
<ValueChoicesWithId xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
<d5p1:NamedObject>
<d5p1:Identity>1e3efd60-55e7-4f8d-afbf-841b5ce1f6d0</d5p1:Identity>
<d5p1:Name>sample string 2</d5p1:Name>
</d5p1:NamedObject>
</ValueChoicesWithId>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
</Properties>
<RequiresBookingTypeIdentity>true</RequiresBookingTypeIdentity>
<RuleGroupRequiresOneValidOnly>true</RuleGroupRequiresOneValidOnly>
<RunOnCreateType>Never</RunOnCreateType>
<RunOnDeleteType>Never</RunOnDeleteType>
<RunOnUpdateAsCreate>true</RunOnUpdateAsCreate>
<RunOnUpdateType>Never</RunOnUpdateType>
</BookingRuleType>
</ArrayOfBookingRuleType>