POST api/Drugs/UpdateCocktail

Request Information

URI Parameters

None.

Body Parameters

Cocktail
NameDescriptionTypeAdditional information
cocktail_code

integer

None.

cocktail_name

string

Required

String length: inclusive between 0 and 100

remarks

string

String length: inclusive between 0 and 15

active

string

String length: inclusive between 0 and 1

interface_code

string

String length: inclusive between 0 and 10

old_code

integer

None.

DrugsForCocktails

Collection of DrugsForCocktails

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 'Cocktails' with type 'CustDemog.Cocktail'. Path 'DrugsForCocktails[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 'Cocktails' with type 'CustDemog.Cocktail'. Path 'DrugsForCocktails[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 'CustDemog.DrugsForCocktails' 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 'CustDemog.DrugsForCocktails' 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 'Cocktail'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

None.