PUT api/BookingTypes/{bookingTypeIdentity}/Rules/{identity}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
bookingTypeIdentity | string |
Required |
|
identity | string |
Required |
Body Parameters
BookingRuleName | 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": "8032bf66-d8f8-428d-8bb1-c41b8a64792c", "RuleType": { "Properties": [ { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "6c5e3274-c2f7-47f9-987a-1b0df8fd8dd5", "StartRange": true, "EndRange": true }, { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "6c5e3274-c2f7-47f9-987a-1b0df8fd8dd5", "StartRange": true, "EndRange": true } ], "RunOnUpdateAsCreate": true, "RunOnCreateType": 0, "RunOnUpdateType": 0, "RunOnDeleteType": 0, "RuleGroupRequiresOneValidOnly": true, "Identity": "38fb98bc-7b77-4a7f-b086-3967c2501822", "Name": "sample string 4" }, "Properties": [ { "Value": {}, "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "StartRange": true, "EndRange": true, "IsObsolete": true, "Identity": "cca87348-d218-430a-835c-629c9dc50f69", "Name": "sample string 7" }, { "Value": {}, "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "StartRange": true, "EndRange": true, "IsObsolete": true, "Identity": "cca87348-d218-430a-835c-629c9dc50f69", "Name": "sample string 7" } ], "AppliesTo": [ { "Identity": "f89ec693-4838-4bca-96db-97e9705dadbf", "Name": "sample string 2" }, { "Identity": "f89ec693-4838-4bca-96db-97e9705dadbf", "Name": "sample string 2" } ], "RunOnCreate": true, "RunOnUpdate": true, "RunOnDelete": true, "FailureMessage": "sample string 5", "AdminsExempt": true, "BookingManagersExempt": true, "ApproversExempt": true, "PermissionGroupsExempt": true, "ExemptPermissionGroups": [ { "Identity": "f89ec693-4838-4bca-96db-97e9705dadbf", "Name": "sample string 2" }, { "Identity": "f89ec693-4838-4bca-96db-97e9705dadbf", "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>f89ec693-4838-4bca-96db-97e9705dadbf</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>f89ec693-4838-4bca-96db-97e9705dadbf</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>f89ec693-4838-4bca-96db-97e9705dadbf</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>f89ec693-4838-4bca-96db-97e9705dadbf</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </ExemptPermissionGroups> <FailureMessage>sample string 5</FailureMessage> <Identity>8032bf66-d8f8-428d-8bb1-c41b8a64792c</Identity> <PermissionGroupsExempt>true</PermissionGroupsExempt> <Properties> <BookingRuleDatum> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">cca87348-d218-430a-835c-629c9dc50f69</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">cca87348-d218-430a-835c-629c9dc50f69</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">38fb98bc-7b77-4a7f-b086-3967c2501822</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 4</Name> <Properties> <BookingRuleTypeProperty> <EndRange>true</EndRange> <Identity>6c5e3274-c2f7-47f9-987a-1b0df8fd8dd5</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>6c5e3274-c2f7-47f9-987a-1b0df8fd8dd5</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
BookingRuleName | 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": "d53dd3cc-a20b-4770-81e9-b561b58f1bdc", "RuleType": { "Properties": [ { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "ea207a31-80f6-4058-b01b-7d59e7593722", "StartRange": true, "EndRange": true }, { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "ea207a31-80f6-4058-b01b-7d59e7593722", "StartRange": true, "EndRange": true } ], "RunOnUpdateAsCreate": true, "RunOnCreateType": 0, "RunOnUpdateType": 0, "RunOnDeleteType": 0, "RuleGroupRequiresOneValidOnly": true, "Identity": "6b3c5808-64c4-4dac-8385-6033476b0d66", "Name": "sample string 4" }, "Properties": [ { "Value": {}, "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "StartRange": true, "EndRange": true, "IsObsolete": true, "Identity": "5069b295-0925-4566-8e6f-9cd8c49768a6", "Name": "sample string 7" }, { "Value": {}, "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "StartRange": true, "EndRange": true, "IsObsolete": true, "Identity": "5069b295-0925-4566-8e6f-9cd8c49768a6", "Name": "sample string 7" } ], "AppliesTo": [ { "Identity": "b4bdca5e-5fde-44c2-be14-42a111027621", "Name": "sample string 2" }, { "Identity": "b4bdca5e-5fde-44c2-be14-42a111027621", "Name": "sample string 2" } ], "RunOnCreate": true, "RunOnUpdate": true, "RunOnDelete": true, "FailureMessage": "sample string 5", "AdminsExempt": true, "BookingManagersExempt": true, "ApproversExempt": true, "PermissionGroupsExempt": true, "ExemptPermissionGroups": [ { "Identity": "b4bdca5e-5fde-44c2-be14-42a111027621", "Name": "sample string 2" }, { "Identity": "b4bdca5e-5fde-44c2-be14-42a111027621", "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>b4bdca5e-5fde-44c2-be14-42a111027621</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>b4bdca5e-5fde-44c2-be14-42a111027621</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>b4bdca5e-5fde-44c2-be14-42a111027621</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>b4bdca5e-5fde-44c2-be14-42a111027621</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </ExemptPermissionGroups> <FailureMessage>sample string 5</FailureMessage> <Identity>d53dd3cc-a20b-4770-81e9-b561b58f1bdc</Identity> <PermissionGroupsExempt>true</PermissionGroupsExempt> <Properties> <BookingRuleDatum> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">5069b295-0925-4566-8e6f-9cd8c49768a6</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">5069b295-0925-4566-8e6f-9cd8c49768a6</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">6b3c5808-64c4-4dac-8385-6033476b0d66</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 4</Name> <Properties> <BookingRuleTypeProperty> <EndRange>true</EndRange> <Identity>ea207a31-80f6-4058-b01b-7d59e7593722</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>ea207a31-80f6-4058-b01b-7d59e7593722</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>