POST api/CRMThresholds

Insert New Threshold

Request Information

URI Parameters

None.

Body Parameters

Threshold
NameDescriptionTypeAdditional information
ThresholdID

integer

None.

ThresholdKey

string

Required

String length: inclusive between 0 and 50

DecisionTarget

string

Required

String length: inclusive between 0 and 50

DecisionClass

string

Required

String length: inclusive between 0 and 50

StandardValueFrom

decimal number

Required

StandardValueTo

decimal number

Required

Explanation

string

String length: inclusive between 0 and 1000

Unit

string

String length: inclusive between 0 and 1000

IsEnabled

boolean

None.

FacilityID

integer

None.

Facilities

Facilities

None.

FacilityCode

string

None.

CreatedUserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ThresholdID": 1,
  "ThresholdKey": "sample string 2",
  "DecisionTarget": "sample string 3",
  "DecisionClass": "sample string 4",
  "StandardValueFrom": 5.0,
  "StandardValueTo": 6.0,
  "Explanation": "sample string 7",
  "Unit": "sample string 8",
  "IsEnabled": true,
  "FacilityID": 10,
  "Facilities": {
    "FacilityPackage": [
      {
        "Packages": {
          "PackageFacility": [],
          "PackageMenu": [
            {
              "Menu": {
                "MenuPackage": [],
                "MenuID": 1,
                "MenuParentID": 2,
                "MenuCode": "sample string 3",
                "MenuName": "sample string 4",
                "MenuUrl": "sample string 5",
                "MenuUrlMulti": "sample string 6",
                "MenuIconClass": "sample string 7",
                "DisplayOrder": 8,
                "IsEnabled": true,
                "CreatedUserID": 10
              },
              "RelPackageMenuID": 1,
              "PackageID": 2,
              "MenuID": 3,
              "PackageCode": "sample string 4",
              "MenuCode": "sample string 5",
              "CreatedUserID": 6
            },
            {
              "Menu": {
                "MenuPackage": [],
                "MenuID": 1,
                "MenuParentID": 2,
                "MenuCode": "sample string 3",
                "MenuName": "sample string 4",
                "MenuUrl": "sample string 5",
                "MenuUrlMulti": "sample string 6",
                "MenuIconClass": "sample string 7",
                "DisplayOrder": 8,
                "IsEnabled": true,
                "CreatedUserID": 10
              },
              "RelPackageMenuID": 1,
              "PackageID": 2,
              "MenuID": 3,
              "PackageCode": "sample string 4",
              "MenuCode": "sample string 5",
              "CreatedUserID": 6
            }
          ],
          "Exclusions": [
            {
              "RelPackageWidgetExclusionID": 1,
              "PackageID": 2,
              "WidgetID": 3,
              "PackageCode": "sample string 4",
              "WidgetCode": "sample string 5",
              "CreatedUserID": 6
            },
            {
              "RelPackageWidgetExclusionID": 1,
              "PackageID": 2,
              "WidgetID": 3,
              "PackageCode": "sample string 4",
              "WidgetCode": "sample string 5",
              "CreatedUserID": 6
            }
          ],
          "PackageID": 1,
          "PackageCode": "sample string 2",
          "PackageName": "sample string 3",
          "Description": "sample string 4",
          "Title": "sample string 5",
          "IsCustom": true,
          "IsEnabled": true,
          "CreatedUserID": 8
        },
        "RelFacilityPackageID": 1,
        "FacilityID": 2,
        "PackageID": 3,
        "FacilityCode": "sample string 4",
        "PackageCode": "sample string 5",
        "CreatedUserID": 6
      },
      {
        "Packages": {
          "PackageFacility": [],
          "PackageMenu": [
            {
              "Menu": {
                "MenuPackage": [],
                "MenuID": 1,
                "MenuParentID": 2,
                "MenuCode": "sample string 3",
                "MenuName": "sample string 4",
                "MenuUrl": "sample string 5",
                "MenuUrlMulti": "sample string 6",
                "MenuIconClass": "sample string 7",
                "DisplayOrder": 8,
                "IsEnabled": true,
                "CreatedUserID": 10
              },
              "RelPackageMenuID": 1,
              "PackageID": 2,
              "MenuID": 3,
              "PackageCode": "sample string 4",
              "MenuCode": "sample string 5",
              "CreatedUserID": 6
            },
            {
              "Menu": {
                "MenuPackage": [],
                "MenuID": 1,
                "MenuParentID": 2,
                "MenuCode": "sample string 3",
                "MenuName": "sample string 4",
                "MenuUrl": "sample string 5",
                "MenuUrlMulti": "sample string 6",
                "MenuIconClass": "sample string 7",
                "DisplayOrder": 8,
                "IsEnabled": true,
                "CreatedUserID": 10
              },
              "RelPackageMenuID": 1,
              "PackageID": 2,
              "MenuID": 3,
              "PackageCode": "sample string 4",
              "MenuCode": "sample string 5",
              "CreatedUserID": 6
            }
          ],
          "Exclusions": [
            {
              "RelPackageWidgetExclusionID": 1,
              "PackageID": 2,
              "WidgetID": 3,
              "PackageCode": "sample string 4",
              "WidgetCode": "sample string 5",
              "CreatedUserID": 6
            },
            {
              "RelPackageWidgetExclusionID": 1,
              "PackageID": 2,
              "WidgetID": 3,
              "PackageCode": "sample string 4",
              "WidgetCode": "sample string 5",
              "CreatedUserID": 6
            }
          ],
          "PackageID": 1,
          "PackageCode": "sample string 2",
          "PackageName": "sample string 3",
          "Description": "sample string 4",
          "Title": "sample string 5",
          "IsCustom": true,
          "IsEnabled": true,
          "CreatedUserID": 8
        },
        "RelFacilityPackageID": 1,
        "FacilityID": 2,
        "PackageID": 3,
        "FacilityCode": "sample string 4",
        "PackageCode": "sample string 5",
        "CreatedUserID": 6
      }
    ],
    "FacilityID": 1,
    "FacilityCode": "sample string 2",
    "FacilityName": "sample string 3",
    "FacilityNameAlias": "sample string 4",
    "Address1": "sample string 5",
    "Address2": "sample string 6",
    "City": "sample string 7",
    "PostalCode": "sample string 8",
    "State": "sample string 9",
    "Country": "sample string 10",
    "IsEnabled": true,
    "IsNss": true,
    "CompanyID": 13,
    "Companies": {
      "CompanyID": 1,
      "CompanyCode": "sample string 2",
      "CompanyName": "sample string 3",
      "CompanyNameAlias": "sample string 4",
      "Address1": "sample string 5",
      "Address2": "sample string 6",
      "City": "sample string 7",
      "PostalCode": "sample string 8",
      "State": "sample string 9",
      "Country": "sample string 10",
      "IsEnabled": true,
      "RegionID": 12,
      "RegionCode": "sample string 13",
      "CreatedUserID": 14
    },
    "CompanyCode": "sample string 14",
    "CreatedUserID": 15
  },
  "FacilityCode": "sample string 11",
  "CreatedUserID": 12
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

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.