Get Curation Condition by ID

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Get the condition by ID.

Since: 3.116.x

Security: Requires a valid user with the "VIEW_POLICIES" permission.

Usage: GET /xray/api/v1/curation/conditions/{condition_id}

Consumes: None

Produces: application/json

Path Parameters: condition_id

Query Parameters: None

Response Body

Name

Type

Description

id

string

The ID of the condition, used as a path parameter when updating or deleting the condition and when referring to it in a policy.

condition_template_id

string

One of the IDs of the supported condition templates returned by the list condition templates api

name

string

The name of the condition

is_custom

Boolean

false for built-in immutable conditions, true for mutable user created custom conditions

created_at

string

Timestamp when the condition was created

updated_at

Timestamp when the condition was updated

risk_type

One of: security, legal or operational.

supported_pkg_types

One of: "npm", "PyPI", "Maven", "Go", "NuGet", "Conan", "Gems", "Gradle", "HuggingFaceML" or "Docker". Additional package types will be added.

param_values

Array[ParamWithValue]

Array of parameter values.

Sample Request

GET /xray/api/v1/curation/conditions/20

Sample Response

{
  "id": "20",
  "is_custom": true,
  "created_by": "admin",
  "created_at": "2025-03-12T12:30:20+02:00",
  "updated_by": "admin",
  "updated_at": "2025-03-12T12:30:20+02:00",
  "risk_type": "security",
  "supported_pkg_types": ["npm"],
  "condition_template_id": "SpecificVersions",
  "name": "foo",
  "param_values": [
    {
      "param_id": "package_type",
      "value": "npm"
    },
    {
      "param_id": "package_name",
      "value": "jquery"
    },
    {
      "param_id": "package_versions",
      "value": [
        "[3.6.1]",
        "[3.7.1]"
      ]
    }
  ]
}

Response Codes:

Status

Description

200

OK

400

Bad Request