POST api/hatcherycompanies/{hatcheryCompanyId}/hatcheries
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| hatcheryCompanyId | globally unique identifier |
Required |
Body Parameters
Hatchery| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| HatcheryCompanyId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| CertifiedNumber | string |
None. |
|
| Address | Address |
None. |
|
| ManagerUserIds | Collection of string |
None. |
|
| Active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "e71f0503-5dad-419a-a260-a65f4961e8ff",
"HatcheryCompanyId": "078bda15-be83-4225-b6b0-ade06d602bc3",
"Name": "sample string 3",
"CertifiedNumber": "sample string 4",
"Address": {
"Line1": "sample string 1",
"Line2": "sample string 2",
"City": "sample string 3",
"State": "sample string 4",
"PostalCode": "sample string 5"
},
"ManagerUserIds": [
"sample string 1",
"sample string 2"
],
"Active": true
}
application/xml, text/xml
Sample:
<Hatchery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UEP.Core.Models">
<Active>true</Active>
<Address>
<City>sample string 3</City>
<Line1>sample string 1</Line1>
<Line2>sample string 2</Line2>
<PostalCode>sample string 5</PostalCode>
<State>sample string 4</State>
</Address>
<CertifiedNumber>sample string 4</CertifiedNumber>
<HatcheryCompanyId>078bda15-be83-4225-b6b0-ade06d602bc3</HatcheryCompanyId>
<Id>e71f0503-5dad-419a-a260-a65f4961e8ff</Id>
<ManagerUserIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ManagerUserIds>
<Name>sample string 3</Name>
</Hatchery>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.