UpdateFormConfig
This method can be used for the following: Update form configuration for a type;
Last updated
curl -X PUT 'https://demo.attackforge.com/api/ss/config/form/vulnerability' -H 'Host: localhost:3000' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"config": [
{
"config": {
"fields": [
{
"config": {
"key": "writeupAndAssets",
"label": "Writeup and Affected Assets"
},
"type": "system"
},
{
"config": {
"key": "zeroDay",
"label": "Is 0-Day?"
},
"type": "system"
},
{
"config": {
"key": "visibility",
"label": "Visibility"
},
"type": "system"
}
],
"label": "Basic"
},
"type": "section"
},
{
"config": {
"fields": [
{
"config": {
"key": "scoring",
"label": "CVSS Scoring, Priority and Exploitability"
},
"type": "system"
}
],
"label": "Scoring"
},
"type": "section"
},
{
"config": {
"fields": [
{
"config": {
"key": "stepsToReproduce",
"label": "Steps to Reproduce"
},
"type": "system"
},
{
"config": {
"key": "notes",
"label": "Notes"
},
"type": "system"
}
],
"label": "Testing"
},
"type": "section"
},
{
"config": {
"fields": [
{
"config": {
"key": "cvssTags",
"label": "CVSS Tags"
},
"type": "system"
},
{
"config": {
"key": "tags",
"label": "Tags"
},
"type": "system"
},
{
"config": {
"key": "customTags",
"label": "Custom Tags"
},
"type": "system"
},
{
"config": {
"key": "testCases",
"label": "Associated Test Cases"
},
"type": "system"
}
],
"label": "Tags"
},
"type": "section"
}
],
"type": "vulnerability"
}'{
"status": "updated",
"type": "vulnerability",
"config": [
{
"config": {
"fields": [
{
"config": {
"key": "writeupAndAssets",
"label": "Writeup and Affected Assets"
},
"type": "system"
},
{
"config": {
"key": "zeroDay",
"label": "Is 0-Day?"
},
"type": "system"
},
{
"config": {
"key": "visibility",
"label": "Visibility"
},
"type": "system"
}
],
"label": "Basic"
},
"type": "section"
},
{
"config": {
"fields": [
{
"config": {
"key": "scoring",
"label": "CVSS Scoring, Priority and Exploitability"
},
"type": "system"
}
],
"label": "Scoring"
},
"type": "section"
},
{
"config": {
"fields": [
{
"config": {
"key": "stepsToReproduce",
"label": "Steps to Reproduce"
},
"type": "system"
},
{
"config": {
"key": "notes",
"label": "Notes"
},
"type": "system"
}
],
"label": "Testing"
},
"type": "section"
},
{
"config": {
"fields": [
{
"config": {
"key": "cvssTags",
"label": "CVSS Tags"
},
"type": "system"
},
{
"config": {
"key": "tags",
"label": "Tags"
},
"type": "system"
},
{
"config": {
"key": "customTags",
"label": "Custom Tags"
},
"type": "system"
},
{
"config": {
"key": "testCases",
"label": "Associated Test Cases"
},
"type": "system"
}
],
"label": "Tags"
},
"type": "section"
}
]
}