PUT api/CptCodes

Request Information

URI Parameters

None.

Body Parameters

CptCode
NameDescriptionTypeAdditional information
CptCodeId

integer

None.

Name

string

Required

Summery

string

None.

Code

string

Required

CashPrice

decimal number

None.

InsurancePrice

decimal number

None.

IsGCode

boolean

Required

IsLab

boolean

None.

IsRadiologoy

boolean

None.

IsMedicine

boolean

None.

IndependentVisualizationOfImage

boolean

None.

IsActive

boolean

Required

CptCodeCategoryId

integer

None.

CptCodeCategory

CptCodeCategory

None.

ModifierRuleId

integer

None.

ModifierRule

ModifierRule

None.

Request Formats

application/json, text/json

Sample:
{
  "cptCodeId": 1,
  "name": "sample string 2",
  "summery": "sample string 3",
  "code": "sample string 4",
  "cashPrice": 5.0,
  "insurancePrice": 6.0,
  "isGCode": true,
  "isLab": true,
  "isRadiologoy": true,
  "isMedicine": true,
  "independentVisualizationOfImage": true,
  "isActive": true,
  "cptCodeCategoryId": 1,
  "cptCodeCategory": {
    "cptCodeCategoryId": 1,
    "name": "sample string 2",
    "isActive": true
  },
  "modifierRuleId": 1,
  "modifierRule": {
    "modifierRuleId": 1,
    "name": "sample string 2",
    "description": "sample string 3",
    "isActive": true
  }
}

text/html

Sample:
{"cptCodeId":1,"name":"sample string 2","summery":"sample string 3","code":"sample string 4","cashPrice":5.0,"insurancePrice":6.0,"isGCode":true,"isLab":true,"isRadiologoy":true,"isMedicine":true,"independentVisualizationOfImage":true,"isActive":true,"cptCodeCategoryId":1,"cptCodeCategory":{"cptCodeCategoryId":1,"name":"sample string 2","isActive":true},"modifierRuleId":1,"modifierRule":{"modifierRuleId":1,"name":"sample string 2","description":"sample string 3","isActive":true}}

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 'System.Collections.Generic.List`1[[UrgentCareExtra.Data.Models.CptCode, UrgentCareExtra.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'System.Collections.Generic.List`1[[UrgentCareExtra.Data.Models.CptCode, UrgentCareExtra.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'CptCode'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.