Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleREST Request

Code Block
POST http://localhost:80/rest/FoodEditService.svc/SetUSLabel HTTP/1.1
Content-Type: text/plain
Host: localhost:80

request={ 
    "UserCode":"XYZ-123",
    "GeneralOptions":{
        "RecommendationProfile":"Adult",
        "Style":"Standard",
        "Format":"Full",
        "PrimaryLanguage":"English",
        "EnServingSize":"EN SS US",
        "SpServingSize":"sp SS US",
        "HideCalculatedServingSize":"false",
        "ServingSizeUoM":"0",
        "EnServingsPerContainer":"EN SPC US",
        "SpServingsPerContainer":"SP SPC US",
        "HideServingsPerContainer":"false",
        "EnAlternateHeading":"EN AH US",
        "SpAlternateHeading":"SP AH US",
        "DisplayServingSizeAs":"0",
        "DisplayServingsPerContainerAs":"0",
    },
    "VoluntaryNutrients":{
        "ShowBiotin":"False",
        "ShowCaloriesFromSatFat":"False",
        "ShowChloride":"False",
        "ShowCholine":"False",
        "ShowChromium":"False",
        "ShowCopper":"False",
        "ShowFluoride":"False",
        "ShowFolateDFE":"False",
        "ShowInsolubleFiber2006":"False",
        "ShowIodine":"False",
        "ShowMagnesium":"False",
        "ShowManganese":"False",
        "ShowMolybdenum":"False",
        "ShowMonoFat":"False",
        "ShowPantothenicAcid":"False",
        "ShowPhosphorus":"False",
        "ShowPolyFat":"False",
        "ShowSelenium":"False",
        "ShowSolubleFiber2006":"False",
        "ShowSugarAlcohol":"False",
        "ShowVitaminA_RAE":"False",
        "ShowVitaminB1":"False",
        "ShowVitaminB12":"False",
        "ShowVitaminB2":"False",
        "ShowVitaminB3_NiacinEquiv":"False",
        "ShowVitaminB6":"False",
        "ShowVitaminC":"False",
        "ShowVitaminE_AlphaToco":"False",
        "ShowVitaminK":"False",
        "ShowZinc":"False",
    },
   "FormatOptions":
   {
		"UseUnroundedValuesWhenCalcPercentStandard":"False",
		"UseAbbreviations":"False",
		"ShowBilingual":"False",
		"HideDualDeclarationFootnote":"False",
		"HideStandardFootnote":"False",
		"IncludeRecipeNameInAllergenStatement":"False",
		"IncludeRecipeNameInIngredientStatement":"False",
		"Hide449ConversionChart":"False",
		"InsertLessThan2PctIngredientStatement":"False",
		"ContainsLessThan2PctSorted":"False",
		"UppercaseAllergenStatement":"False",
		"UppercaseIngredientStatement":"False",
		"PutVitaminsMineralsIntoTwoColumns":"False",
		"PercentDailyValueHeading":"0",
		"NutritionFactsText":"0",
		"NoBoldingTextInLinear":"False",
		"HideTransFat":"False",
		"HideLinesBetweenVitaminsMinerals":"False",
		"WrapBilingualNutrients":"False",
		"HideVitaminDCalciumIronPotassium":"False",
		"ItalicizeTransFat":"False",
		"Use2018GuidanceForNutrientRoundings":"False",
		"HidePercentDVFootnote":"False",
		"HideQuantitativeValues":"False",
		"ShowInsignificantFootnote":"False",
		"ShowAddedSugarsPalatabilityStmt":"False",
		"PalatabilityStatementText":"Palatability Text",
		"ShowSingleIngredientSymbol":"False"
    },
   "NutrientOptions":
   { 
        "AddedSugarDisplayAs":"0",
		"AddedSugarIfLessThanOne":"0",
		"AddedSugarShowEvenIfInsignificant":"false",
		"BiotinShowAmount":"false",
		"BiotinRoundToNearestTenth":"false",
		"CalciumShowEvenIfInsignificant":"false",
		"CalciumRoundToNearestTenth":"false",
		"CaloriesDisplayAs":"0",
		"CaloriesIfLessThanFive":"0",
		"CaloriesCalculationMethod":"0",
		"CaloriesSatFatDisplayAs":"0",
		"CaloriesSatFatIfLessThanFive":"0",
		"CarbohydratesDisplayAs":"0",
		"CarbohydratesIfLessThanOne":"0",
		"ChlorideShowAmount":"false",
		"ChlorideRoundToNearestTenth":"false",
		"CholesterolDisplayAs":"0",
		"CholesterolIfBetweenTwoAndFive":"0",
		"CholesterolShowEvenIfInsignificant":"false",
		"CholineShowAmount":"false",
		"CholineRoundToNearestTenth":"false",
		"ChromiumShowAmount":"false",
		"ChromiumRoundToNearestTenth":"false",
		"CopperShowAmount":"false",
		"CopperRoundToNearestHundredth":"false",
		"DietaryFiberDisplayAs":"0",
		"DietaryFiberIfLessThanOne":"0",
		"DietaryFiberShowEvenIfInsignificant":"false",
		"FatDisplayAs":"0",
		"FolateDFEShowFolicAcidInParens":"false",
		"FolateDFEShowAmount":"false",
		"FolateDFERoundToNearestTenth":"false",
		"InsolubleFiberDisplayAs":"0",
		"InsolubleFiberIfLessThanOne":"0",
		"IodineShowAmount":"false",
		"IodineRoundToNearestTenth":"false",
		"IronRoundToNearestTenth":"false",
		"IronShowEvenIfInsignificant":"false",
		"MagnesiumShowAmount":"false",
		"MagnesiumRoundToNearestTenth":"false",
		"ManganeseShowAmount":"false",
		"ManganeseRoundToNearestHundredth":"false",
		"MolybdenumShowAmount":"false",
		"MolybdenumRoundToNearestTenth":"false",
		"MonoFatDisplayAs":"0",
		"PantothenticAcidShowAmount":"false",
		"PatothenicAcidRoundToNearestTenth":"false",
		"PhosphorusShowAmount":"false",
		"PhosphorusRoundToNearestTenth":"false",
		"PolyFatDisplayAs":"0",
		"PotassiumDisplayAs":"0",
		"PotassiumRoundToNearestTenth":"false",
		"PotassiumShowEvenIfInsignificant":"false",
		"ProteinIfLessThanOne":"0",
		"ProteinPDCAA":"0",
		"ProteinPER":"0",
		"ProteinShowPercentDV":"false",
		"ProteinShowNotASignificantSourceOfStmt":"false",
		"SaturatedFatDisplayAs":"0",
		"SeleniumShowAmount":"false",
		"SeleniumRoundToNearestTenth":"false",
		"SolubleFiberDisplayAs":"0",
		"SolubleFiberIfLessThanOne":"0",
		"SugAlcoholDisplayAs":"0",
		"SugAlcoholEnglishSpecific":"EnglishText",
		"SugAlcoholSpanishSpecific":"SpanishText",
		"SulfitesDisplayAs":"0",
		"SulfitesEnglishText":"English Text",
		"SulfitesSpanishText":"Spanish Text",
		"SulfitesHide":"false",
		"SugarsIfLessThanOne":"0",
		"SugarsShowEvenIfInsignificant":"false",
		"TransFatShowEvenIfInsignificant":"false",
		"VitaminADisplayAs":"0",
		"VitaminAShowAmount":"false",
		"VitaminARoundToNearestTenth":"false",
		"VitaminB1DisplayAs":"0",
		"VitaminB1ShowAmount":"false",
		"VitaminB1RoundToNearestHundredth":"false",
		"VitaminB12DisplayAs":"0",
		"VitaminB12ShowAmount":"false",
		"VitaminB12RoundToNearestHundredth":"false",
		"VitaminB2DisplayAs":"0",
		"VitaminB2ShowAmount":"false",
		"VitaminB2RoundToNearestHundredth":"false",
		"VitaminB3ShowAmount":"false",
		"VitaminB3RoundToNearestTenth":"false",
		"VitaminB6DisplayAs":"0",
		"VitaminB6ShowAmount":"false",
		"VitaminB6RoundToNearestHundredth":"false",
		"VitaminCDisplayAs":"0",
		"VitaminCShowAmount":"false",
		"VitaminCRoundToNearestTenth":"false",
		"VitaminDDisplayAs":"0",
		"VitaminDShowIUInParensFollowingMcg":"false",
		"VitaminDRoundToNearestTenth":"false",
		"VitaminDShowEvenIfInsignificant":"false",
		"VitaminEDisplayAs":"0",
		"VitaminEShowAmount":"false",
		"VitaminERoundToNearestTenth":"false",
		"VitaminKDisplayAs":"0",
		"VitaminKShowAmount":"false",
		"VitaminKRoundToNearestTenth":"false",
		"ZincShowAmount":"false",
		"ZincRoundToNearestHundredth":"false",
		"VitaminsMineralsBelowTwoPercent":"0"
   },
   "EditDetails":{
        "EditMessage":"Setting Canadian label on recipe",
        "EditCaller":{
            "Name":"Our PLM System"
        }
    }
}

Expand
titleREST Response

Code Block
{
    "UpdatedFoodsCount": 1,
    "Errors": null,
    "Status": {
        "StatusMessage": 200,
        "StatusCode": 200,
        "StatusDetail": null
    },
    "ResponseVersion": {}
}