Patch Codeset
Safran Documentation › Safran Integration API › API Methods › CodeSets
"reference_fields":[
{
"reference_values":[
{
"description":"Reference 2.1, short 02.1",
"_short":"Short 02.1",
"sort_field":2
},
{
"description":"Reference 2.2, short 02.2",
"_short":"Short 02.2",
"sort_field":3
}
],
"field_nr":2,
"label":"Reference 2**",
"visible":true,
"enabled":true
}
]
}
]
Sample Call Patch (Insert new top node)
json input to the API
[
{
"rowId": 1,
"codeSetAction": "C",
"updateIfExists": true,
"id": 100011,
"name": "Api Test Patch",
"owner": "SAFRANSA",
"outline_codes": [
{
"field_nr": 3,
"outline_values": [
{
"description": "Top level node",
"_short": "001",
"seq": 0
}
]
}
]
}
]
Sample Call Patch (Add new, alter description for existing and move to a new parent)
json input to the API
[
{
"RowId":1,
"CodeSetAction":"C",
"UpdateIfExists":true,
"outline_codes":[
{
"oc_levels":3,
"outline_values":[
{
"description":"New item",
"_short":"O1-P0-S1§O1-P1-S2§O1-P2-S5",
"seq":0,
"level":3,
"delimiter_char":"§"
},
{
"description":"B.Update item",
"_short":"O1-P0-S1§O1-P1-S2.NewShort",
"seq":2 …