Skip to content
Start here

Update Threat Signals skill

client.cloudforceOne.threatSignals.skills.edit(stringskillID, SkillEditParams { account_id, config, is_active, 3 more } params, RequestOptionsoptions?): SkillEditResponse { id, config, created_at, 7 more }
PATCH/accounts/{account_id}/cloudforce-one/v2/threat-signals/skills/{skill_id}

Updates a Custom Skill. Managed Default Skills cannot be updated. Free Threat Signals accounts cannot update Custom Skills.

Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Cloudforce One Write
ParametersExpand Collapse
skillID: string

Custom Skill UUID or a Managed Default Skill ID

params: SkillEditParams { account_id, config, is_active, 3 more }
account_id: string

Path param

config?: string

Body param: Optional skill configuration (stored but not currently interpreted).

is_active?: boolean

Body param: Whether the skill is active and eligible for feed assignment.

name?: string

Body param: Custom Skill name (1–100 characters).

maxLength100
minLength1
output_schema?: string

Body param: JSON Schema serialized as a string (max 4096 characters).

maxLength4096
minLength1
prompt?: string

Body param: AI prompt (1–4000 characters) defining the skill’s instructions.

maxLength4000
minLength1
ReturnsExpand Collapse
SkillEditResponse { id, config, created_at, 7 more }
id: string
config: string | null

JSON-encoded skill configuration. Always null for default skills.

created_at: string
is_active: number

1 when active, 0 when inactive.

name: string
output_schema: string | null

JSON-encoded JSON Schema the skill output must satisfy.

prompt: string
source: "default" | "custom"

default for Cloudforce One managed skills (read-only), custom for account skills.

One of the following:
"default"
"custom"
type: string
updated_at: string

Update Threat Signals skill

import Cloudflare from 'cloudflare';

const client = new Cloudflare({
  apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});

const response = await client.cloudforceOne.threatSignals.skills.edit('skill_id', {
  account_id: 'account_id',
});

console.log(response.id);
{
  "errors": [
    {
      "message": "message"
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 0,
      "custom_feed_count": 0,
      "custom_feed_limit": 0,
      "expected": "expected",
      "path": [
        "string"
      ],
      "reason": "threat_signals_feed_limit"
    }
  ],
  "result": {
    "id": "id",
    "config": "config",
    "created_at": "created_at",
    "is_active": 0,
    "name": "name",
    "output_schema": "output_schema",
    "prompt": "prompt",
    "source": "default",
    "type": "summary",
    "updated_at": "updated_at"
  },
  "success": true
}
Returns Examples
{
  "errors": [
    {
      "message": "message"
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 0,
      "custom_feed_count": 0,
      "custom_feed_limit": 0,
      "expected": "expected",
      "path": [
        "string"
      ],
      "reason": "threat_signals_feed_limit"
    }
  ],
  "result": {
    "id": "id",
    "config": "config",
    "created_at": "created_at",
    "is_active": 0,
    "name": "name",
    "output_schema": "output_schema",
    "prompt": "prompt",
    "source": "default",
    "type": "summary",
    "updated_at": "updated_at"
  },
  "success": true
}