GetCustomFieldsConfig

This method can be used for the following: Get custom fields configuration for a type;

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

GET /api/ss/config/custom-fields/:type HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Query

type (string)

Get configuration options for a particular type. Must be one of the following: project, project-request, vulnerability-library, asset, or portfolio

Example:

GET /api/ss/config/custom-fields/project HTTP/1.1

Example

The following example is a cURL request to get custom fields configuration for projects.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.

curl -X GET 'https://demo.attackforge.com/api/ss/config/custom-fields/project' -H 'Host: localhost:3000' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close'

Response

Response contains a list of custom field configuration objects.

{
  "type": "...",
  "config" : [
    {
      "custom_field_type" : "...",
      "custom_field_key" : "...",
      "custom_field_default_value" : "...",
      "custom_field_label" : "...",
      "custom_field_required" : "...",
      "custom_field_display_in_tables" : "...",
      "custom_field_hide_condition" : "...",
      "custom_field_sort_order" : 999,
      "custom_field_placeholder" : "...",
      "custom_field_information" : "...",
      "custom_field_view_roles": [
        "...",
      ],
      "custom_field_view_groups": [
        "...",
      ],
      "custom_field_view_users": [
        "...",
      ],
      "custom_field_edit_roles": [
        "...",
      ],
      "custom_field_edit_groups": [
        "...",
      ],
      "custom_field_edit_users": [
        "...",
      ],
      "custom_field_linked_project_key" : "...",
      "custom_field_select_field_options" : [
        {
          "option": "...",
          "value": "..."
        }
      ],
      "custom_field_table_field_columns" : [
        {
          "column_type" : "...",
          "column_key" : "...",
          "column_value" : "...",
          "column_label" : "...",
          "column_info" : "...",
          "column_required" : "...",
          "column_options" : [
            {
              "option": "...",
              "value": "..."
            }
          ]
        }
      ]
    }
  ]
}

Last updated

Check YouTube for more tutorials: https://youtube.com/@attackforge