Common Room · Schema

CreateSegmentRequest

Community IntelligenceGo-to-MarketMember SignalsGitHubSlackDiscordLinkedInSales IntelligenceContact ManagementWebhooks

Properties

Name Type Description
name string The name for the new segment (max 500 characters)
description string Optional description for the segment (markdown supported)
entityType string The type of entity this segment will contain
objectTypeId string Required when entityType is `object`. Prefixed object type ID (format `cot_`)
View JSON Schema on GitHub

JSON Schema

common-room-v2-createsegmentrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.commonroom.io/schemas/v2/createsegmentrequest",
  "title": "CreateSegmentRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The name for the new segment (max 500 characters)"
    },
    "description": {
      "type": "string",
      "description": "Optional description for the segment (markdown supported)"
    },
    "entityType": {
      "type": "string",
      "enum": [
        "contact",
        "object",
        "organization"
      ],
      "default": "contact",
      "description": "The type of entity this segment will contain"
    },
    "objectTypeId": {
      "type": "string",
      "description": "Required when entityType is `object`. Prefixed object type ID (format `cot_<number>`)"
    }
  }
}