{"openapi":"3.0.4","info":{"title":"Upsert a Configuration Recipe. This creates or updates the data in Lusid.","description":"Update or insert one Configuration Recipe in a single scope. An item will be updated if it already exists\r\nand inserted if it does not.\r\n            \r\nThe response will return the successfully updated or inserted Configuration Recipe or failure message if unsuccessful\r\n            \r\nIt is important to always check to verify success (or failure).","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/api"}],"paths":{"/api/recipes":{"post":{"tags":["Configuration Recipe"],"summary":"Upsert a Configuration Recipe. This creates or updates the data in Lusid.","description":"Update or insert one Configuration Recipe in a single scope. An item will be updated if it already exists\r\nand inserted if it does not.\r\n            \r\nThe response will return the successfully updated or inserted Configuration Recipe or failure message if unsuccessful\r\n            \r\nIt is important to always check to verify success (or failure).","operationId":"UpsertConfigurationRecipe","requestBody":{"description":"The Configuration Recipe to update or insert","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/UpsertRecipeRequest"},"example":{"configurationRecipe":{"scope":"scopeName","code":"MyNamedRecipe12345","market":{"marketRules":[{"key":"Fx.CurrencyPair.*","supplier":"DataScope","dataScope":"SomeScopeToLookAt","quoteType":"Rate","field":"Mid","priceSource":"","sourceSystem":"Lusid","fallThroughOnAccessDenied":false}],"suppliers":{},"options":{"defaultSupplier":"Lusid","defaultInstrumentCodeType":"LusidInstrumentId","defaultScope":"default","attemptToInferMissingFx":false,"calendarScope":"CoppClarkHolidayCalendars","conventionScope":"Conventions"},"specificRules":[],"groupedMarketRules":[]},"pricing":{"modelRules":[],"modelChoice":{},"options":{"modelSelection":{"library":"Lusid","model":"SimpleStatic"},"useInstrumentTypeToDeterminePricer":false,"allowAnyInstrumentsWithSecUidToPriceOffLookup":false,"allowPartiallySuccessfulEvaluation":false,"produceSeparateResultForLinearOtcLegs":false,"fxForwardContractsAsUnitsInBothLegs":false,"enableUseOfCachedUnitResults":false,"windowValuationOnInstrumentStartEnd":false,"removeContingentCashflowsInPaymentDiary":false,"useChildSubHoldingKeysForPortfolioExpansion":false,"validateDomesticAndQuoteCurrenciesAreConsistent":false,"mbsValuationUsingHoldingCurrentFace":false,"convertSrsCashFlowsToPortfolioCurrency":false,"conservedQuantityForLookthroughExpansion":"PV","returnZeroPv":{"instrumentMatured":false},"enableLegLevelInferenceForCustomSrsColumns":false,"useInstrumentScaleFactorAsDefault":false},"resultDataRules":[],"holdingPricingInfo":{"fallbackField":"None","overrideField":"None","specificFallbacks":[],"specificOverrides":[]}},"aggregation":{"options":{"useAnsiLikeSyntax":false,"allowPartialEntitlementSuccess":false,"applyIso4217Rounding":false}},"description":"","holding":{"taxLotLevelHoldings":true}}}},"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/UpsertRecipeRequest"},"example":{"configurationRecipe":{"scope":"scopeName","code":"MyNamedRecipe12345","market":{"marketRules":[{"key":"Fx.CurrencyPair.*","supplier":"DataScope","dataScope":"SomeScopeToLookAt","quoteType":"Rate","field":"Mid","priceSource":"","sourceSystem":"Lusid","fallThroughOnAccessDenied":false}],"suppliers":{},"options":{"defaultSupplier":"Lusid","defaultInstrumentCodeType":"LusidInstrumentId","defaultScope":"default","attemptToInferMissingFx":false,"calendarScope":"CoppClarkHolidayCalendars","conventionScope":"Conventions"},"specificRules":[],"groupedMarketRules":[]},"pricing":{"modelRules":[],"modelChoice":{},"options":{"modelSelection":{"library":"Lusid","model":"SimpleStatic"},"useInstrumentTypeToDeterminePricer":false,"allowAnyInstrumentsWithSecUidToPriceOffLookup":false,"allowPartiallySuccessfulEvaluation":false,"produceSeparateResultForLinearOtcLegs":false,"fxForwardContractsAsUnitsInBothLegs":false,"enableUseOfCachedUnitResults":false,"windowValuationOnInstrumentStartEnd":false,"removeContingentCashflowsInPaymentDiary":false,"useChildSubHoldingKeysForPortfolioExpansion":false,"validateDomesticAndQuoteCurrenciesAreConsistent":false,"mbsValuationUsingHoldingCurrentFace":false,"convertSrsCashFlowsToPortfolioCurrency":false,"conservedQuantityForLookthroughExpansion":"PV","returnZeroPv":{"instrumentMatured":false},"enableLegLevelInferenceForCustomSrsColumns":false,"useInstrumentScaleFactorAsDefault":false},"resultDataRules":[],"holdingPricingInfo":{"fallbackField":"None","overrideField":"None","specificFallbacks":[],"specificOverrides":[]}},"aggregation":{"options":{"useAnsiLikeSyntax":false,"allowPartialEntitlementSuccess":false,"applyIso4217Rounding":false}},"description":"","holding":{"taxLotLevelHoldings":true}}}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/UpsertRecipeRequest"},"example":{"configurationRecipe":{"scope":"scopeName","code":"MyNamedRecipe12345","market":{"marketRules":[{"key":"Fx.CurrencyPair.*","supplier":"DataScope","dataScope":"SomeScopeToLookAt","quoteType":"Rate","field":"Mid","priceSource":"","sourceSystem":"Lusid","fallThroughOnAccessDenied":false}],"suppliers":{},"options":{"defaultSupplier":"Lusid","defaultInstrumentCodeType":"LusidInstrumentId","defaultScope":"default","attemptToInferMissingFx":false,"calendarScope":"CoppClarkHolidayCalendars","conventionScope":"Conventions"},"specificRules":[],"groupedMarketRules":[]},"pricing":{"modelRules":[],"modelChoice":{},"options":{"modelSelection":{"library":"Lusid","model":"SimpleStatic"},"useInstrumentTypeToDeterminePricer":false,"allowAnyInstrumentsWithSecUidToPriceOffLookup":false,"allowPartiallySuccessfulEvaluation":false,"produceSeparateResultForLinearOtcLegs":false,"fxForwardContractsAsUnitsInBothLegs":false,"enableUseOfCachedUnitResults":false,"windowValuationOnInstrumentStartEnd":false,"removeContingentCashflowsInPaymentDiary":false,"useChildSubHoldingKeysForPortfolioExpansion":false,"validateDomesticAndQuoteCurrenciesAreConsistent":false,"mbsValuationUsingHoldingCurrentFace":false,"convertSrsCashFlowsToPortfolioCurrency":false,"conservedQuantityForLookthroughExpansion":"PV","returnZeroPv":{"instrumentMatured":false},"enableLegLevelInferenceForCustomSrsColumns":false,"useInstrumentScaleFactorAsDefault":false},"resultDataRules":[],"holdingPricingInfo":{"fallbackField":"None","overrideField":"None","specificFallbacks":[],"specificOverrides":[]}},"aggregation":{"options":{"useAnsiLikeSyntax":false,"allowPartialEntitlementSuccess":false,"applyIso4217Rounding":false}},"description":"","holding":{"taxLotLevelHoldings":true}}}},"application/*+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/UpsertRecipeRequest"},"example":{"configurationRecipe":{"scope":"scopeName","code":"MyNamedRecipe12345","market":{"marketRules":[{"key":"Fx.CurrencyPair.*","supplier":"DataScope","dataScope":"SomeScopeToLookAt","quoteType":"Rate","field":"Mid","priceSource":"","sourceSystem":"Lusid","fallThroughOnAccessDenied":false}],"suppliers":{},"options":{"defaultSupplier":"Lusid","defaultInstrumentCodeType":"LusidInstrumentId","defaultScope":"default","attemptToInferMissingFx":false,"calendarScope":"CoppClarkHolidayCalendars","conventionScope":"Conventions"},"specificRules":[],"groupedMarketRules":[]},"pricing":{"modelRules":[],"modelChoice":{},"options":{"modelSelection":{"library":"Lusid","model":"SimpleStatic"},"useInstrumentTypeToDeterminePricer":false,"allowAnyInstrumentsWithSecUidToPriceOffLookup":false,"allowPartiallySuccessfulEvaluation":false,"produceSeparateResultForLinearOtcLegs":false,"fxForwardContractsAsUnitsInBothLegs":false,"enableUseOfCachedUnitResults":false,"windowValuationOnInstrumentStartEnd":false,"removeContingentCashflowsInPaymentDiary":false,"useChildSubHoldingKeysForPortfolioExpansion":false,"validateDomesticAndQuoteCurrenciesAreConsistent":false,"mbsValuationUsingHoldingCurrentFace":false,"convertSrsCashFlowsToPortfolioCurrency":false,"conservedQuantityForLookthroughExpansion":"PV","returnZeroPv":{"instrumentMatured":false},"enableLegLevelInferenceForCustomSrsColumns":false,"useInstrumentScaleFactorAsDefault":false},"resultDataRules":[],"holdingPricingInfo":{"fallbackField":"None","overrideField":"None","specificFallbacks":[],"specificOverrides":[]}},"aggregation":{"options":{"useAnsiLikeSyntax":false,"allowPartialEntitlementSuccess":false,"applyIso4217Rounding":false}},"description":"","holding":{"taxLotLevelHoldings":true}}}}},"required":true},"responses":{"200":{"description":"The successfully updated or inserted item or any failure","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/UpsertSingleStructuredDataResponse"}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/UpsertSingleStructuredDataResponse"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/UpsertSingleStructuredDataResponse"}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidProblemDetails"}}}}},"security":[{"BearerAuth":[]}],"x-fbn-apistatus":"Stable"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}