action configcat_create_segment { label: "Create Segment" description: "This endpoint creates a new Segment in a specified Product \nidentified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint." provider: configcat method: POST path: "/v1/products/{productId}/segments" encoding: json input: { type: "object" properties: { comparator: { type: "string" enum: ["isOneOf", "isNotOneOf", "contains", "doesNotContain", "semVerIsOneOf", "semVerIsNotOneOf", "semVerLess", "semVerLessOrEquals", "semVerGreater", "semVerGreaterOrEquals", "numberEquals", "numberDoesNotEqual", "numberLess", "numberLessOrEquals", "numberGreater", "numberGreaterOrEquals", "sensitiveIsOneOf", "sensitiveIsNotOneOf"] } comparisonAttribute: { type: "string" } comparisonValue: { type: "string" } description: { type: "string" } name: { type: "string" } productId: { type: "string" format: "uuid" } } required: ["comparator", "comparisonAttribute", "comparisonValue", "name", "productId"] additionalProperties: false } output: { type: "object" properties: { comparator: { type: "string" enum: ["isOneOf", "isNotOneOf", "contains", "doesNotContain", "semVerIsOneOf", "semVerIsNotOneOf", "semVerLess", "semVerLessOrEquals", "semVerGreater", "semVerGreaterOrEquals", "numberEquals", "numberDoesNotEqual", "numberLess", "numberLessOrEquals", "numberGreater", "numberGreaterOrEquals", "sensitiveIsOneOf", "sensitiveIsNotOneOf"] } comparisonAttribute: { type: "string" } comparisonValue: { type: "string" } createdAt: { type: "string" format: "date-time" } creatorEmail: { type: "string" } creatorFullName: { type: "string" } description: { type: "string" } lastUpdaterEmail: { type: "string" } lastUpdaterFullName: { type: "string" } name: { type: "string" } product: { type: "object" properties: { description: { type: "string" } name: { type: "string" } order: { type: "integer" format: "int32" } organization: { type: "object" properties: { name: { type: "string" } organizationId: { type: "string" format: "uuid" } } additionalProperties: false } productId: { type: "string" format: "uuid" } reasonRequired: { type: "boolean" } } additionalProperties: false } segmentId: { type: "string" format: "uuid" } updatedAt: { type: "string" format: "date-time" } } additionalProperties: false } }