{"openapi":"3.0.4","info":{"title":"Add a configuration item to an existing set","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/configuration"}],"paths":{"/api/sets/{type}/{scope}/{code}/items":{"post":{"tags":["ConfigurationSets"],"summary":"Add a configuration item to an existing set","operationId":"AddConfigurationToSet","parameters":[{"name":"type","in":"path","description":"Whether the configuration set is Personal or Shared","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"The scope that identifies a configuration set","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"code","in":"path","description":"The code that identifies a configuration set","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"userId","in":"query","description":"Feature that allows Administrators to administer personal settings  (but never reveal the value of secrets) of a specific user.","schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}}],"requestBody":{"description":"The data to create a configuration item","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/CreateConfigurationItem"},"example":{"key":"password","value":"a super secret password","valueType":"text","isSecret":false,"description":"Password for System A","blockReveal":false}},"application/json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/CreateConfigurationItem"},"example":{"key":"password","value":"a super secret password","valueType":"text","isSecret":false,"description":"Password for System A","blockReveal":false}},"text/json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/CreateConfigurationItem"},"example":{"key":"password","value":"a super secret password","valueType":"text","isSecret":false,"description":"Password for System A","blockReveal":false}},"application/*+json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/CreateConfigurationItem"},"example":{"key":"password","value":"a super secret password","valueType":"text","isSecret":false,"description":"Password for System A","blockReveal":false}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/ConfigurationSet"},"example":{"createdAt":"0001-01-01T00:00:00.0000000+00:00","createdBy":"user","lastModifiedAt":"0001-01-01T00:00:00.0000000+00:00","lastModifiedBy":"user","description":"All the config related to System A","items":[{"key":"password","value":"a super secret password","valueType":"text","isSecret":true,"ref":"config://shared/official/system-a-config/password","blockReveal":false}],"id":{"scope":"official","code":"system-a-config"},"type":"shared"}},"text/plain":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/ConfigurationSet"},"example":{"createdAt":"0001-01-01T00:00:00.0000000+00:00","createdBy":"user","lastModifiedAt":"0001-01-01T00:00:00.0000000+00:00","lastModifiedBy":"user","description":"All the config related to System A","items":[{"key":"password","value":"a super secret password","valueType":"text","isSecret":true,"ref":"config://shared/official/system-a-config/password","blockReveal":false}],"id":{"scope":"official","code":"system-a-config"},"type":"shared"}},"text/json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/ConfigurationSet"},"example":{"createdAt":"0001-01-01T00:00:00.0000000+00:00","createdBy":"user","lastModifiedAt":"0001-01-01T00:00:00.0000000+00:00","lastModifiedBy":"user","description":"All the config related to System A","items":[{"key":"password","value":"a super secret password","valueType":"text","isSecret":true,"ref":"config://shared/official/system-a-config/password","blockReveal":false}],"id":{"scope":"official","code":"system-a-config"},"type":"shared"}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/plain":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"404":{"description":"No configuration set exists with the provided identifiers","content":{"application/json":{"schema":{"type":"string"}},"text/plain":{"schema":{"type":"string"}},"text/json":{"schema":{"type":"string"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"$ref":"/docs/api/configuration/schemas.json#/components/schemas/LusidProblemDetails"}}}}},"security":[{"BearerAuth":[]}],"x-fbn-apistatus":"EarlyAccess"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}