POST api/v1/bookings/{id}/consents
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
Required |
Body Parameters
ConsentBindingModelName | Description | Type | Additional information |
---|---|---|---|
Consent | Dictionary of string [key] and Collection of string [value] |
None. |
Request Formats
application/json, text/json
Sample:
{ "Consent": { "sample string 1": [ "sample string 1", "sample string 2" ], "sample string 2": [ "sample string 1", "sample string 2" ] } }
application/xml, text/xml
Sample:
<ConsentBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models.Booking"> <Consent xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </d2p1:Value> </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d2p1:Key>sample string 2</d2p1:Key> <d2p1:Value> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </d2p1:Value> </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1> </Consent> </ConsentBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseWrapperBindingModelOfIEnumerableOfConsentBindingModelName | Description | Type | Additional information |
---|---|---|---|
Results | Collection of ConsentBindingModel |
None. |
|
TotalResults | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "TotalResults": 1, "Results": [ { "Consent": { "sample string 1": [ "sample string 1", "sample string 2" ], "sample string 2": [ "sample string 1", "sample string 2" ] } }, { "Consent": { "sample string 1": [ "sample string 1", "sample string 2" ], "sample string 2": [ "sample string 1", "sample string 2" ] } } ] }
application/xml, text/xml
Sample:
<ResponseWrapperBindingModelOfArrayOfConsentBindingModelV9UCGkeC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Prometric.Api.Models"> <TotalResults>1</TotalResults> <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models.Booking"> <d2p1:ConsentBindingModel> <d2p1:Consent xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Value> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d4p1:Value> </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:Key>sample string 2</d4p1:Key> <d4p1:Value> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d4p1:Value> </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> </d2p1:Consent> </d2p1:ConsentBindingModel> <d2p1:ConsentBindingModel> <d2p1:Consent xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Value> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d4p1:Value> </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:Key>sample string 2</d4p1:Key> <d4p1:Value> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d4p1:Value> </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> </d2p1:Consent> </d2p1:ConsentBindingModel> </Results> </ResponseWrapperBindingModelOfArrayOfConsentBindingModelV9UCGkeC>