POST api/v1/providers
Request Information
URI Parameters
None.
Body Parameters
ProviderRequestBindingModelName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
Name | string |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
string |
None. |
||
Location | ProviderLocationBindingModel |
None. |
|
IsContracted | boolean |
None. |
|
ContractFee | decimal number |
None. |
|
Currency | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Name": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5", "Location": { "Address": { "AddressLine": [ "sample string 1", "sample string 2" ], "Locality": "sample string 1", "AdminDistrict": "sample string 2", "PostalCode": "sample string 3", "Country": "sample string 4", "FormattedAddress": "sample string 5" }, "Contact": { "FirstName": "sample string 1", "LastName": "sample string 2", "Email": "sample string 3", "PhoneNumber": "sample string 4", "FaxNumber": "sample string 5" } }, "IsContracted": true, "ContractFee": 1.0, "Currency": "sample string 7" }
application/xml, text/xml
Sample:
<ProviderRequestBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models.Provider"> <ContractFee>1</ContractFee> <Currency>sample string 7</Currency> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <Id>sample string 1</Id> <IsContracted>true</IsContracted> <LastName>sample string 4</LastName> <Location> <Address xmlns:d3p1="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models"> <d3p1:AddressLine xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d3p1:AddressLine> <d3p1:AdminDistrict>sample string 2</d3p1:AdminDistrict> <d3p1:Country>sample string 4</d3p1:Country> <d3p1:FormattedAddress>sample string 5</d3p1:FormattedAddress> <d3p1:Locality>sample string 1</d3p1:Locality> <d3p1:PostalCode>sample string 3</d3p1:PostalCode> </Address> <Contact> <FaxNumber xmlns="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models">sample string 5</FaxNumber> <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Prometric.Scheduling.Api.Models">sample string 4</PhoneNumber> <Email>sample string 3</Email> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> </Contact> </Location> <Name>sample string 2</Name> </ProviderRequestBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResourceReferenceOfStringName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
Href | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Href": "sample string 2" }
application/xml, text/xml
Sample:
<ResourceReferenceOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Prometric.Api.Models"> <Href>sample string 2</Href> <Id>sample string 1</Id> </ResourceReferenceOfstring>