{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Segment `name` has to be unique. A user can not create a new segment with an existing segment name.","properties":{"body":{"$ref":"#/definitions/SegmentWriteV2"}},"required":[],"additionalProperties":false,"definitions":{"SegmentWriteV2":{"title":"segment_write","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the segment."},"parent_list_ids":{"type":"array","description":"The array of list ids to filter contacts on when building this segment. It allows only one such list id for now. We will support more in future","uniqueItems":true,"items":{"type":"string"}},"query_dsl":{"type":"string","description":"SQL query which will filter contacts based on the conditions provided"}},"required":["name","query_dsl"]}}},"name":"Create Segment","id":"sendgrid.mc_segments_2.0.createsegment","example":{},"maxRequests":1,"summary":false}}