{"openapi":"3.0.4","info":{"title":"Create an amortisation rule set.","description":"Creates an amortisation rule set definition at the given effective time.\r\nThe user must be entitled to read any properties specified in each rule.","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/api"}],"paths":{"/api/amortisation/rulesets/{scope}":{"post":{"tags":["Amortisation Rule Sets"],"summary":"Create an amortisation rule set.","description":"Creates an amortisation rule set definition at the given effective time.\r\nThe user must be entitled to read any properties specified in each rule.","operationId":"CreateAmortisationRuleSet","parameters":[{"name":"scope","in":"path","description":"The scope of the rule set.","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}}],"requestBody":{"description":"The contents of the rule set.","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateAmortisationRuleSetRequest"},"example":{"code":"RuleSetCode","displayName":"RuleSetDisplayName","description":"RuleSet Description"}},"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateAmortisationRuleSetRequest"},"example":{"code":"RuleSetCode","displayName":"RuleSetDisplayName","description":"RuleSet Description"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateAmortisationRuleSetRequest"},"example":{"code":"RuleSetCode","displayName":"RuleSetDisplayName","description":"RuleSet Description"}},"application/*+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CreateAmortisationRuleSetRequest"},"example":{"code":"RuleSetCode","displayName":"RuleSetDisplayName","description":"RuleSet Description"}}},"required":true},"responses":{"201":{"description":"Create a rule set for amortisation.","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/AmortisationRuleSet"},"example":{"id":{"scope":"RuleSetScope","code":"RuleSetCode"},"displayName":"RuleSetDisplayName","description":"RuleSet Description","rulesInterval":{"effectiveRange":{"fromDate":"2024-01-01T00:00:00.0000000+00:00"},"rules":[]}}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/AmortisationRuleSet"},"example":{"id":{"scope":"RuleSetScope","code":"RuleSetCode"},"displayName":"RuleSetDisplayName","description":"RuleSet Description","rulesInterval":{"effectiveRange":{"fromDate":"2024-01-01T00:00:00.0000000+00:00"},"rules":[]}}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/AmortisationRuleSet"},"example":{"id":{"scope":"RuleSetScope","code":"RuleSetCode"},"displayName":"RuleSetDisplayName","description":"RuleSet Description","rulesInterval":{"effectiveRange":{"fromDate":"2024-01-01T00:00:00.0000000+00:00"},"rules":[]}}}}},"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":"Experimental"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}