POST api/v1/reservations
Request Information
URI Parameters
None.
Body Parameters
ReservationsRequestBindingModelName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
Name | string |
None. |
|
ExamId | string |
None. |
|
ProviderId | string |
None. |
|
Holds | Collection of Pair of string [key] and string [value] |
None. |
|
NumberOfDays | integer |
None. |
|
SalesforceTicketNumber | integer |
None. |
|
TransactionId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Name": "sample string 2", "ExamId": "sample string 3", "ProviderId": "sample string 4", "Holds": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "NumberOfDays": 5, "SalesforceTicketNumber": 6, "TransactionId": "sample string 7" }
application/xml, text/xml
Sample:
<ReservationsRequestBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models.Reservation"> <ExamId>sample string 3</ExamId> <Holds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"> <d2p1:KeyValuePairOfstringstring> <d2p1:key>sample string 1</d2p1:key> <d2p1:value>sample string 2</d2p1:value> </d2p1:KeyValuePairOfstringstring> <d2p1:KeyValuePairOfstringstring> <d2p1:key>sample string 1</d2p1:key> <d2p1:value>sample string 2</d2p1:value> </d2p1:KeyValuePairOfstringstring> </Holds> <Id>sample string 1</Id> <Name>sample string 2</Name> <NumberOfDays>5</NumberOfDays> <ProviderId>sample string 4</ProviderId> <SalesforceTicketNumber>6</SalesforceTicketNumber> <TransactionId>sample string 7</TransactionId> </ReservationsRequestBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ReservationBindingModelName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
Name | string |
None. |
|
SiteCode | string |
None. |
|
ProviderName | string |
None. |
|
ProgramName | string |
None. |
|
ProgramCode | string |
None. |
|
TestCenterName | string |
None. |
|
DaysToExpire | integer |
None. |
|
SalesforceTicketNumber | integer |
None. |
|
Notes | string |
None. |
|
Exam | ResourceReferenceOfString |
None. |
|
Provider | ResourceReferenceOfString |
None. |
|
Holds | Collection of ResourceReferenceOfString |
None. |
|
ReservationHolds | ResourceReferenceOfString |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Name": "sample string 3", "SiteCode": "sample string 4", "ProviderName": "sample string 5", "ProgramName": "sample string 6", "ProgramCode": "sample string 7", "TestCenterName": "sample string 8", "DaysToExpire": 9, "SalesforceTicketNumber": 10, "Notes": "sample string 11", "Exam": { "Id": "sample string 1", "Href": "sample string 2" }, "Provider": { "Id": "sample string 1", "Href": "sample string 2" }, "Holds": [ { "Id": "sample string 1", "Href": "sample string 2" }, { "Id": "sample string 1", "Href": "sample string 2" } ], "ReservationHolds": { "Id": "sample string 1", "Href": "sample string 2" } }
application/xml, text/xml
Sample:
<ReservationBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models.Reservation"> <DaysToExpire>9</DaysToExpire> <Exam xmlns:d2p1="http://schemas.datacontract.org/2004/07/Prometric.Api.Models"> <d2p1:Href>sample string 2</d2p1:Href> <d2p1:Id>sample string 1</d2p1:Id> </Exam> <Holds xmlns:d2p1="http://schemas.datacontract.org/2004/07/Prometric.Api.Models"> <d2p1:ResourceReferenceOfstring> <d2p1:Href>sample string 2</d2p1:Href> <d2p1:Id>sample string 1</d2p1:Id> </d2p1:ResourceReferenceOfstring> <d2p1:ResourceReferenceOfstring> <d2p1:Href>sample string 2</d2p1:Href> <d2p1:Id>sample string 1</d2p1:Id> </d2p1:ResourceReferenceOfstring> </Holds> <Id>sample string 1</Id> <Name>sample string 3</Name> <Notes>sample string 11</Notes> <ProgramCode>sample string 7</ProgramCode> <ProgramName>sample string 6</ProgramName> <Provider xmlns:d2p1="http://schemas.datacontract.org/2004/07/Prometric.Api.Models"> <d2p1:Href>sample string 2</d2p1:Href> <d2p1:Id>sample string 1</d2p1:Id> </Provider> <ProviderName>sample string 5</ProviderName> <ReservationHolds xmlns:d2p1="http://schemas.datacontract.org/2004/07/Prometric.Api.Models"> <d2p1:Href>sample string 2</d2p1:Href> <d2p1:Id>sample string 1</d2p1:Id> </ReservationHolds> <SalesforceTicketNumber>10</SalesforceTicketNumber> <SiteCode>sample string 4</SiteCode> <TestCenterName>sample string 8</TestCenterName> <Uri>sample string 2</Uri> </ReservationBindingModel>