ICP / GTM / CLI

Save segment

Deterministically create or update one coding-agent-authored Launchpad segment by workspace and slug. Does not invoke hosted inference.

pipeline save-segmentDeterministic operation

Parameters

workspaceIdRequired · string
See the input schema for this field.
segmentRequired · object
See the input schema for this field.
Request example
pipeline save-segment \
  --workspace-id "00000000-0000-4000-8000-000000000000" \
  --segment-json '{"name":"example"}'
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "segment": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        "valueProp": {
          "type": "string"
        },
        "pain": {
          "type": "string"
        },
        "criteria": {
          "type": "object",
          "additionalProperties": true
        },
        "exampleAccounts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "domain": {
                "type": "string"
              }
            },
            "required": [
              "name"
            ]
          }
        },
        "personaIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "icpProfileId": {
          "type": "string"
        },
        "weight": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "estimatedLeads": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "workspaceId",
    "segment"
  ]
}
See this operation inMCP REST API TypeScript SDK
CLI guide | Pipeline v2 preview