Add a Configuration Storage

post/add/JCS

Adds the JSON Configuration Storage (JCS).

Securitybasic or X-PriceFx-jwt
Request
Request Body schema: application/json
operationType
string
textMatchStyle
string
object (JsonConfigurationStorage)

The type code is JCS. Stores configuration for Strategy Designer and Formula Designer.

lastUpdateByName
string
createdByName
string
updateDate
string <date-time>
typedId
string
lastUpdateDate
string <date-time>
storageStatus
string
Possible values: "DRAFT" "ACTIVE" "SUPERSEDED"
label
string or null <= 255 characters
version
integer
jsonStorage
string

A valid json of any size.

createdBy
integer
name
string <= 255 characters
storageType
string
Possible values: "STRATEGY" "STRATEGY_LOOKUP" "FORMULA" "FORMULA_LOOKUP"
id
integer
supersededBy
integer or null
createDate
string <date-time>
lastUpdateBy
integer
Responses
200

OK

Response Schema: application/json
object
node
string
Array of objects (JsonConfigurationStorage)
Array
lastUpdateByName
string
createdByName
string
updateDate
string <date-time>
typedId
string
lastUpdateDate
string <date-time>
storageStatus
string
Possible values: "DRAFT" "ACTIVE" "SUPERSEDED"
label
string or null <= 255 characters
version
integer
jsonStorage
string

A valid json of any size.

createdBy
integer
name
string <= 255 characters
storageType
string
Possible values: "STRATEGY" "STRATEGY_LOOKUP" "FORMULA" "FORMULA_LOOKUP"
id
integer
supersededBy
integer or null
createDate
string <date-time>
lastUpdateBy
integer
status
integer
Request samples
application/json
{
  • "operationType": "add",
  • "textMatchStyle": "exact",
  • "data": {
    • "name": "NewStrategy",
    • "label": "NewStrategy",
    • "jsonStorage": "{\"blocks\":{\"languageVersion\":0,\"blocks\":[{\"type\":\"strategy_custom\",\"inputs\":{\"PRICE\":{\"shadow\":{\"type\":\"math_number\",\"fields\":{\"NUM\":0}}}},\"id\":\"root\"}]},\"variables\":[]}",
    • "storageType": "STRATEGY"
    }
}
Response samples
application/json
{
  • "response": {
    • "node": "pricefx-cluster-app-frontend-6b88584c79-dd656",
    • "data": [
      • {
        • "version": 0,
        • "typedId": "6.JCS",
        • "name": "NewStrategy",
        • "label": "NewStrategy",
        • "createdByName": "ondrej.tesar",
        • "lastUpdateByName": "ondrej.tesar",
        • "storageStatus": "DRAFT",
        • "storageType": "STRATEGY",
        • "supersededBy": null,
        • "jsonStorage": "{\"blocks\":{\"languageVersion\":0,\"blocks\":[{\"type\":\"strategy_custom\",\"inputs\":{\"PRICE\":{\"shadow\":{\"type\":\"math_number\",\"fields\":{\"NUM\":0}}}},\"id\":\"root\"}]},\"variables\":[]}",
        • "updateDate": "2024-07-20T09:33:20",
        • "createDate": "2024-06-20T09:55:20",
        • "createdBy": 2147490187,
        • "lastUpdateDate": "2024-06-20T09:55:20",
        • "lastUpdateBy": 2147490187,
        • "id": 6
        }
      ],
    • "status": 0
    }
}