PUT api/BookingTypes/{bookingTypeIdentity}/Rules/{identity}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bookingTypeIdentity | string |
Required |
|
| identity | string |
Required |
Body Parameters
BookingRule| Name | Description | Type | Additional information |
|---|---|---|---|
| Identity | globally unique identifier |
None. |
|
| RuleType | BookingRuleType |
None. |
|
| Properties | Collection of BookingRuleDatum |
None. |
|
| AppliesTo | Collection of NamedObject |
None. |
|
| RunOnCreate | boolean |
None. |
|
| RunOnUpdate | boolean |
None. |
|
| RunOnDelete | boolean |
None. |
|
| FailureMessage | string |
None. |
|
| AdminsExempt | boolean |
None. |
|
| BookingManagersExempt | boolean |
None. |
|
| ApproversExempt | boolean |
None. |
|
| PermissionGroupsExempt | boolean |
None. |
|
| ExemptPermissionGroups | Collection of NamedObject |
None. |
Request Formats
application/json, text/json
Sample:
{
"Identity": "82e98feb-555f-4797-8b05-34c35cbcd261",
"RuleType": {
"Properties": [
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"Identity": "ff091208-75f7-4f1f-a8e2-2aa3115398c1",
"StartRange": true,
"EndRange": true
},
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"Identity": "ff091208-75f7-4f1f-a8e2-2aa3115398c1",
"StartRange": true,
"EndRange": true
}
],
"RunOnUpdateAsCreate": true,
"RunOnCreateType": 0,
"RunOnUpdateType": 0,
"RunOnDeleteType": 0,
"RuleGroupRequiresOneValidOnly": true,
"Identity": "fb3180e6-c023-4653-be1e-11e4b754b563",
"Name": "sample string 4"
},
"Properties": [
{
"Value": {},
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"StartRange": true,
"EndRange": true,
"IsObsolete": true,
"Identity": "a352e35c-2d27-4e0d-90ec-1e3bc267ba9c",
"Name": "sample string 7"
},
{
"Value": {},
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"StartRange": true,
"EndRange": true,
"IsObsolete": true,
"Identity": "a352e35c-2d27-4e0d-90ec-1e3bc267ba9c",
"Name": "sample string 7"
}
],
"AppliesTo": [
{
"Identity": "381b19d9-a98c-456b-ad9d-3bf0589856f8",
"Name": "sample string 2"
},
{
"Identity": "381b19d9-a98c-456b-ad9d-3bf0589856f8",
"Name": "sample string 2"
}
],
"RunOnCreate": true,
"RunOnUpdate": true,
"RunOnDelete": true,
"FailureMessage": "sample string 5",
"AdminsExempt": true,
"BookingManagersExempt": true,
"ApproversExempt": true,
"PermissionGroupsExempt": true,
"ExemptPermissionGroups": [
{
"Identity": "381b19d9-a98c-456b-ad9d-3bf0589856f8",
"Name": "sample string 2"
},
{
"Identity": "381b19d9-a98c-456b-ad9d-3bf0589856f8",
"Name": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<BookingRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model">
<AdminsExempt>true</AdminsExempt>
<AppliesTo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d2p1:NamedObject>
<d2p1:Identity>381b19d9-a98c-456b-ad9d-3bf0589856f8</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
<d2p1:NamedObject>
<d2p1:Identity>381b19d9-a98c-456b-ad9d-3bf0589856f8</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
</AppliesTo>
<ApproversExempt>true</ApproversExempt>
<BookingManagersExempt>true</BookingManagersExempt>
<ExemptPermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d2p1:NamedObject>
<d2p1:Identity>381b19d9-a98c-456b-ad9d-3bf0589856f8</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
<d2p1:NamedObject>
<d2p1:Identity>381b19d9-a98c-456b-ad9d-3bf0589856f8</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
</ExemptPermissionGroups>
<FailureMessage>sample string 5</FailureMessage>
<Identity>82e98feb-555f-4797-8b05-34c35cbcd261</Identity>
<PermissionGroupsExempt>true</PermissionGroupsExempt>
<Properties>
<BookingRuleDatum>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">a352e35c-2d27-4e0d-90ec-1e3bc267ba9c</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name>
<EndRange>true</EndRange>
<IsObsolete>true</IsObsolete>
<StartRange>true</StartRange>
<Value />
<ValueChoices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</ValueChoices>
<ValueType>sample string 2</ValueType>
</BookingRuleDatum>
<BookingRuleDatum>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">a352e35c-2d27-4e0d-90ec-1e3bc267ba9c</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name>
<EndRange>true</EndRange>
<IsObsolete>true</IsObsolete>
<StartRange>true</StartRange>
<Value />
<ValueChoices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</ValueChoices>
<ValueType>sample string 2</ValueType>
</BookingRuleDatum>
</Properties>
<RuleType>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">fb3180e6-c023-4653-be1e-11e4b754b563</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 4</Name>
<Properties>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>ff091208-75f7-4f1f-a8e2-2aa3115398c1</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>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>ff091208-75f7-4f1f-a8e2-2aa3115398c1</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>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
</Properties>
<RuleGroupRequiresOneValidOnly>true</RuleGroupRequiresOneValidOnly>
<RunOnCreateType>Never</RunOnCreateType>
<RunOnDeleteType>Never</RunOnDeleteType>
<RunOnUpdateAsCreate>true</RunOnUpdateAsCreate>
<RunOnUpdateType>Never</RunOnUpdateType>
</RuleType>
<RunOnCreate>true</RunOnCreate>
<RunOnDelete>true</RunOnDelete>
<RunOnUpdate>true</RunOnUpdate>
</BookingRule>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BookingRule| Name | Description | Type | Additional information |
|---|---|---|---|
| Identity | globally unique identifier |
None. |
|
| RuleType | BookingRuleType |
None. |
|
| Properties | Collection of BookingRuleDatum |
None. |
|
| AppliesTo | Collection of NamedObject |
None. |
|
| RunOnCreate | boolean |
None. |
|
| RunOnUpdate | boolean |
None. |
|
| RunOnDelete | boolean |
None. |
|
| FailureMessage | string |
None. |
|
| AdminsExempt | boolean |
None. |
|
| BookingManagersExempt | boolean |
None. |
|
| ApproversExempt | boolean |
None. |
|
| PermissionGroupsExempt | boolean |
None. |
|
| ExemptPermissionGroups | Collection of NamedObject |
None. |
Response Formats
application/json, text/json
Sample:
{
"Identity": "851fb586-0199-493f-afc6-ccba038b71cb",
"RuleType": {
"Properties": [
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"Identity": "4da075e9-bdad-401e-872f-398ce0d72f99",
"StartRange": true,
"EndRange": true
},
{
"Name": "sample string 1",
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"Identity": "4da075e9-bdad-401e-872f-398ce0d72f99",
"StartRange": true,
"EndRange": true
}
],
"RunOnUpdateAsCreate": true,
"RunOnCreateType": 0,
"RunOnUpdateType": 0,
"RunOnDeleteType": 0,
"RuleGroupRequiresOneValidOnly": true,
"Identity": "f293e9f0-d820-45b8-9f6d-95065ec7c04b",
"Name": "sample string 4"
},
"Properties": [
{
"Value": {},
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"StartRange": true,
"EndRange": true,
"IsObsolete": true,
"Identity": "2c092f9e-9547-4bca-91df-bc8e6a9c3eed",
"Name": "sample string 7"
},
{
"Value": {},
"ValueType": "sample string 2",
"ValueChoices": [
"sample string 1",
"sample string 2"
],
"StartRange": true,
"EndRange": true,
"IsObsolete": true,
"Identity": "2c092f9e-9547-4bca-91df-bc8e6a9c3eed",
"Name": "sample string 7"
}
],
"AppliesTo": [
{
"Identity": "4dd9f06b-275c-46c2-959a-d9b12eec8c42",
"Name": "sample string 2"
},
{
"Identity": "4dd9f06b-275c-46c2-959a-d9b12eec8c42",
"Name": "sample string 2"
}
],
"RunOnCreate": true,
"RunOnUpdate": true,
"RunOnDelete": true,
"FailureMessage": "sample string 5",
"AdminsExempt": true,
"BookingManagersExempt": true,
"ApproversExempt": true,
"PermissionGroupsExempt": true,
"ExemptPermissionGroups": [
{
"Identity": "4dd9f06b-275c-46c2-959a-d9b12eec8c42",
"Name": "sample string 2"
},
{
"Identity": "4dd9f06b-275c-46c2-959a-d9b12eec8c42",
"Name": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<BookingRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model">
<AdminsExempt>true</AdminsExempt>
<AppliesTo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d2p1:NamedObject>
<d2p1:Identity>4dd9f06b-275c-46c2-959a-d9b12eec8c42</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
<d2p1:NamedObject>
<d2p1:Identity>4dd9f06b-275c-46c2-959a-d9b12eec8c42</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
</AppliesTo>
<ApproversExempt>true</ApproversExempt>
<BookingManagersExempt>true</BookingManagersExempt>
<ExemptPermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
<d2p1:NamedObject>
<d2p1:Identity>4dd9f06b-275c-46c2-959a-d9b12eec8c42</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
<d2p1:NamedObject>
<d2p1:Identity>4dd9f06b-275c-46c2-959a-d9b12eec8c42</d2p1:Identity>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:NamedObject>
</ExemptPermissionGroups>
<FailureMessage>sample string 5</FailureMessage>
<Identity>851fb586-0199-493f-afc6-ccba038b71cb</Identity>
<PermissionGroupsExempt>true</PermissionGroupsExempt>
<Properties>
<BookingRuleDatum>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">2c092f9e-9547-4bca-91df-bc8e6a9c3eed</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name>
<EndRange>true</EndRange>
<IsObsolete>true</IsObsolete>
<StartRange>true</StartRange>
<Value />
<ValueChoices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</ValueChoices>
<ValueType>sample string 2</ValueType>
</BookingRuleDatum>
<BookingRuleDatum>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">2c092f9e-9547-4bca-91df-bc8e6a9c3eed</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name>
<EndRange>true</EndRange>
<IsObsolete>true</IsObsolete>
<StartRange>true</StartRange>
<Value />
<ValueChoices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</ValueChoices>
<ValueType>sample string 2</ValueType>
</BookingRuleDatum>
</Properties>
<RuleType>
<Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">f293e9f0-d820-45b8-9f6d-95065ec7c04b</Identity>
<Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 4</Name>
<Properties>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>4da075e9-bdad-401e-872f-398ce0d72f99</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>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
<BookingRuleTypeProperty>
<EndRange>true</EndRange>
<Identity>4da075e9-bdad-401e-872f-398ce0d72f99</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>
<ValueType>sample string 2</ValueType>
</BookingRuleTypeProperty>
</Properties>
<RuleGroupRequiresOneValidOnly>true</RuleGroupRequiresOneValidOnly>
<RunOnCreateType>Never</RunOnCreateType>
<RunOnDeleteType>Never</RunOnDeleteType>
<RunOnUpdateAsCreate>true</RunOnUpdateAsCreate>
<RunOnUpdateType>Never</RunOnUpdateType>
</RuleType>
<RunOnCreate>true</RunOnCreate>
<RunOnDelete>true</RunOnDelete>
<RunOnUpdate>true</RunOnUpdate>
</BookingRule>