POST api1/Contract

Request Information

URI Parameters

None.

Body Parameters

ContractDTO
NameDescriptionTypeAdditional information
ContractID

integer

None.

ContractNumber

string

None.

GenexRepresentative

string

None.

ContractEffectiveDate

date

None.

ContractEndDate

date

None.

Notes

string

None.

IsWatched

boolean

None.

HasPayments

boolean

None.

LifetimeUnits

decimal number

None.

LifetimeIncome

decimal number

None.

LifetimePayments

decimal number

None.

OriginalUser

string

None.

OriginalDateTime

date

None.

UpdateUser

string

None.

UpdateDateTime

date

None.

ContractStatus

Collection of ContractStatusDTO

None.

Schedules

Collection of ScheduleDTO

None.

ContractLimits

Collection of ContractLimitDTO

None.

Documents

Collection of DocumentDTO

None.

Animal

AnimalDTO

None.

Owners

Collection of VendorDTO

None.

OwnershipStructure

Collection of OwnershipStructureDTO

None.

CrossReference

Collection of CrossReferenceDTO

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'ExceptionSchedule' with type 'GENEX.Royalty.DTO.ScheduleDTO'. Path 'Schedules[0].ExceptionScheduleContinentCountry[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'ExceptionSchedule' with type 'GENEX.Royalty.DTO.ScheduleDTO'. Path 'Schedules[0].ExceptionScheduleContinentCountry[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'GENEX.Royalty.DTO.VendorDTO' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'GENEX.Royalty.DTO.VendorDTO' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ContractDTO'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.