POST api/Service/SaveStatusReason

Request Information

URI Parameters

None.

Body Parameters

StatusReason
NameDescriptionTypeAdditional information
reason_code

integer

None.

reason

string

String length: inclusive between 0 and 300

status_code

integer

None.

active

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

ReasonForStatus

Collection of ReasonForStatus

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 with type 'CustDemog.Clinic'. Path 'ReasonForStatus[0].SLAStatusForServiceLines.SLAStatuses.Employee.Clinics.Insurers.Clinics'.

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 with type 'CustDemog.Clinic'. Path 'ReasonForStatus[0].SLAStatusForServiceLines.SLAStatuses.Employee.Clinics.Insurers.Clinics'.

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.ReasonForStatus' 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.ReasonForStatus' 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 'StatusReason'.

application/bson

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>

application/bson

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