{
"message": "The idempotency key is too long.",
"code": "idempotency_key_too_long",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_too_long"
}
{
"message": "A request with this idempotency key is already running.",
"code": "idempotency_key_in_use",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_in_use"
}
{
"message": "The email field must be a valid email address.",
"code": "validation_error",
"doc_url": "<string>",
"errors": {},
"problem": "disposable",
"suggestion": "jsmith@example.com"
}
{
"message": "Too many requests. Try again in 12 seconds.",
"code": "rate_limited",
"doc_url": "https://docs.lekalao.com/errors#rate_limited"
}
Replay a write safely: the same key gives back the first answer for 24 hours (header Idempotent-Replay: true). Read on POST, PUT and PATCH; DELETE ignores it. 255 characters at most.
{
"message": "The idempotency key is too long.",
"code": "idempotency_key_too_long",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_too_long"
}
{
"message": "A request with this idempotency key is already running.",
"code": "idempotency_key_in_use",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_in_use"
}
{
"message": "The email field must be a valid email address.",
"code": "validation_error",
"doc_url": "<string>",
"errors": {},
"problem": "disposable",
"suggestion": "jsmith@example.com"
}
{
"message": "Too many requests. Try again in 12 seconds.",
"code": "rate_limited",
"doc_url": "https://docs.lekalao.com/errors#rate_limited"
}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Lekalao","description":"Lekalao documentation: lists, campaigns, automations and transactional e-mails.","colors":{"primary":"#006C4D","light":"#47C496","dark":"#008060"},"logo":{"light":"https://mintcdn.com/lekalao/X2dfnmUN5ikXeFCy/logo/light.svg?fit=max\u0026auto=format\u0026n=X2dfnmUN5ikXeFCy\u0026q=85\u0026s=2e6970b4e9a452195680476cf2c13687","dark":"https://mintcdn.com/lekalao/X2dfnmUN5ikXeFCy/logo/dark.svg?fit=max\u0026auto=format\u0026n=X2dfnmUN5ikXeFCy\u0026q=85\u0026s=6560301026053212e4e4b88ada215e4f","href":"/"},"favicon":"https://mintcdn.com/lekalao/X2dfnmUN5ikXeFCy/favicon.svg?fit=max\u0026auto=format\u0026n=X2dfnmUN5ikXeFCy\u0026q=85\u0026s=9d16d9b36295db2acb313ac42b51dd0d","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","php","python"]}},"appearance":{"default":"light"},"background":{"color":{"light":"#FCF9F1","dark":"#06170F"}},"navbar":{"links":[{"href":"/api-reference/introduction","label":"API reference"}],"primary":{"type":"button","label":"Get started","href":"/guide/quickstart"}},"footer":{"socials":{}},"seo":{"metatags":{"og:site_name":"Lekalao","og:locale":"en_GB","twitter:card":"summary_large_image","keywords":"Lekalao, e-mail marketing, newsletter, transactional e-mail, e-mail API, campaigns, automations, deliverability"},"paths":[{"path":"fr","metatags":{"og:locale":"fr_FR","keywords":"Lekalao, e-mailing, newsletter, e-mail transactionnel, API e-mail, campagnes, automatisations, délivrabilité"}}],"organization":{"name":"Lekalao","url":"https://lekalao.com"},"indexing":"navigable"},"fonts":{"heading":{"family":"Fraunces","weight":500},"body":{"family":"Instrument Sans"}},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","cursor","mcp"],"display":"header"},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"fr","navbar":{"links":[{"href":"/fr/api-reference/introduction","label":"Référence API"}],"primary":{"type":"button","label":"Démarrer","href":"/fr/guide/quickstart"}},"href":"fr"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lekalao","hasAudioNarration":false,"actualSubdomain":"lekalao","customDomains":["docs.lekalao.com"],"gitSource":{"type":"github","owner":"lekalao","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae68330f80d76da9487939b","collectionId":"059f732d-9ac0-4667-aefd-436ad26fc4f5","liveDeploymentHistoryId":"6ae68330f80d76da9487939b","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae68330f80d76da9487939b","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"en","tag":"API reference","count":59},{"language":"fr","tag":"Référence API","count":59},{"language":"en","tag":"User guide","count":50},{"language":"fr","tag":"Guide utilisateur","count":50},{"language":"en","tag":"Developers","count":18},{"language":"fr","tag":"Développeurs","count":18},{"language":"en","tag":"Campaigns","count":11},{"language":"en","tag":"Contacts","count":11},{"language":"fr","tag":"Campagnes","count":11},{"language":"fr","tag":"Contacts","count":11},{"language":"en","tag":"Subscribers","count":10},{"language":"fr","tag":"Abonnés","count":10},{"language":"en","tag":"Content","count":8},{"language":"fr","tag":"Contenu","count":8},{"language":"en","tag":"Account and team","count":7},{"language":"en","tag":"Recipes","count":7},{"language":"en","tag":"Transactional e-mails","count":7},{"language":"fr","tag":"Compte et équipe","count":7},{"language":"fr","tag":"Recettes","count":7},{"language":"fr","tag":"E-mails transactionnels","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#content-area h2,#content-area h3,#page-title{font-weight:500;letter-spacing:-.015em}#page-title{overflow-wrap:break-word;word-break:normal}#table-of-contents h2,nav h2{font-family:'Instrument Sans',system-ui,sans-serif;font-weight:600;font-size:.8125rem}#content-area{max-width:42rem}.frame{background:#f5f0e4;border:1px solid rgb(11 34 25/.1)}.dark .frame{background:rgb(255 255 255/.04);border-color:rgb(255 255 255/.1)}.frame img{border-radius:.625rem}"}],"page":{"pagePath":"api-reference/segments/change-a-segment","slug":"/api-reference/segments/change-a-segment","pageMetadata":{"title":"Change a segment","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/segments/{segment}","href":"/api-reference/segments/change-a-segment","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Change a segment","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/segments/{segment}","href":"/api-reference/segments/change-a-segment","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Segments"],"summary":"Change a segment","operationId":"api.segments.update","parameters":["13336e40-c197-4dc6-9702-f563bf876768","aa535f52-a52a-4f24-8524-25957bb37be0"],"requestBody":"72e27584-a9b0-41fc-b91f-f8886c6300ac","responses":{"200":"b85d0e6e-a05d-4f32-a2fb-5604b350b923","400":"4d72fb3c-7d68-4910-8390-86978ff12c88","401":"95826a03-3455-43a5-9384-a13aacda2ee7","403":"2221d4e0-3621-4767-bcbc-09b634878def","404":"5a7f5745-72db-41e9-92ff-e8cdd0a882fe","409":"59a5b340-b2e3-48d4-81cd-bf5709f0a32b","422":"6668cd41-349e-4cb0-8e33-3d07a89f1a1c","429":"bda92bca-5710-4379-b9a8-a2683e401528"},"method":"put","type":"path","servers":["625bf61b-f921-4af5-aee2-6126e1725dc5","6265c5f9-182f-47e2-b539-473ca46cdc4b"],"security":["87f09f49-73ef-4e5f-9063-0e3c9d075c26"],"path":"/v1/segments/{segment}","baseUrlOptions":["https://api.lekalao.com","https://{host}/api"],"title":"Change a segment","description":"","codeSamples":[],"requestExampleLanguages":["bash","javascript","php","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"13336e40-c197-4dc6-9702-f563bf876768":{"name":"segment","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"description":"The segment's identifier (uuid).","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"The segment's identifier (uuid)."},"aa535f52-a52a-4f24-8524-25957bb37be0":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255,"isRequired":false,"description":"Replay a write safely: the same key gives back the first answer for 24 hours (header `Idempotent-Replay: true`). Read on POST, PUT and PATCH; DELETE ignores it. 255 characters at most.","uniqueKey":"","typeLabel":"string"},"description":"Replay a write safely: the same key gives back the first answer for 24 hours (header `Idempotent-Replay: true`). Read on POST, PUT and PATCH; DELETE ignores it. 255 characters at most."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"name","typeLabel":"string"},"conditions":{"type":"object","required":["operator","rules"],"description":"A group of rules; a group may hold another one, two levels deep at most, 50 rules at most.","properties":{"operator":{"type":"string","enum":["and","or"],"isRequired":true,"uniqueKey":"conditions.operator","typeLabel":"enum\u003cstring>"},"rules":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","operator"],"properties":{"type":{"type":"string","enum":["email","first_name","last_name","tags","language","attribute","subscribed_at","campaign","automation_mail","link","engagement","list"],"description":"The kind of condition. See the \"Segment conditions\" guide.","isRequired":true,"uniqueKey":"conditions.rules.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","description":"Depends on the type. See Developers → Segments.","isRequired":true,"uniqueKey":"conditions.rules.items.[INDEX].oneOf.0.operator","typeLabel":"string"},"value":{"description":"Depending on the type: text, a number of days, a YYYY-MM-DD date, a language code; tag names or uuids for \"tags\"; the uuid of the campaign, the automation e-mail, the link or the list for \"campaign\", \"automation_mail\", \"link\" and \"list\".","uniqueKey":"conditions.rules.items.[INDEX].oneOf.0.value","typeLabel":"any"},"key":{"type":"string","description":"The attribute's name, for the \"attribute\" type.","uniqueKey":"conditions.rules.items.[INDEX].oneOf.0.key","typeLabel":"string"}},"uniqueKey":"conditions.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","properties":{"operator":{"type":"string","enum":["and","or"],"uniqueKey":"conditions.rules.items.[INDEX].oneOf.1.operator","typeLabel":"enum\u003cstring>"},"rules":{"type":"array","items":{"type":"object","required":["type","operator"],"properties":{"type":{"type":"string","enum":["email","first_name","last_name","tags","language","attribute","subscribed_at","campaign","automation_mail","link","engagement","list"],"description":"The kind of condition. See the \"Segment conditions\" guide.","isRequired":true,"uniqueKey":"conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","description":"Depends on the type. See Developers → Segments.","isRequired":true,"uniqueKey":"conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].operator","typeLabel":"string"},"value":{"description":"Depending on the type: text, a number of days, a YYYY-MM-DD date, a language code; tag names or uuids for \"tags\"; the uuid of the campaign, the automation e-mail, the link or the list for \"campaign\", \"automation_mail\", \"link\" and \"list\".","uniqueKey":"conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].value","typeLabel":"any"},"key":{"type":"string","description":"The attribute's name, for the \"attribute\" type.","uniqueKey":"conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].key","typeLabel":"string"}},"uniqueKey":"conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX]","typeLabel":"object"},"uniqueKey":"conditions.rules.items.[INDEX].oneOf.1.rules","typeLabel":"object[]"}},"uniqueKey":"conditions.rules.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"conditions.rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"conditions.rules","typeLabel":"object[]"}},"example":{"operator":"and","rules":[{"type":"tags","operator":"has_any","value":["vip"]},{"type":"engagement","operator":"active_within_days","value":60}]},"uniqueKey":"conditions","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"name":"VIP"},"examples":{"Example":{"title":"Example","value":{"name":"VIP"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"b85d0e6e-a05d-4f32-a2fb-5604b350b923":{"description":"The segment, changed.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","example":"Active VIP customers","uniqueKey":"data.name","typeLabel":"string"},"list":{"type":"string","format":"uuid","uniqueKey":"data.list","typeLabel":"string\u003cuuid>"},"conditions":{"type":"object","required":["operator","rules"],"description":"A group of rules; a group may hold another one, two levels deep at most, 50 rules at most.","properties":{"operator":{"type":"string","enum":["and","or"],"isRequired":true,"uniqueKey":"data.conditions.operator","typeLabel":"enum\u003cstring>"},"rules":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","operator"],"properties":{"type":{"type":"string","enum":["email","first_name","last_name","tags","language","attribute","subscribed_at","campaign","automation_mail","link","engagement","list"],"description":"The kind of condition. See the \"Segment conditions\" guide.","isRequired":true,"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","description":"Depends on the type. See Developers → Segments.","isRequired":true,"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.0.operator","typeLabel":"string"},"value":{"description":"Depending on the type: text, a number of days, a YYYY-MM-DD date, a language code; tag names or uuids for \"tags\"; the uuid of the campaign, the automation e-mail, the link or the list for \"campaign\", \"automation_mail\", \"link\" and \"list\".","uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.0.value","typeLabel":"any"},"key":{"type":"string","description":"The attribute's name, for the \"attribute\" type.","uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.0.key","typeLabel":"string"}},"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","properties":{"operator":{"type":"string","enum":["and","or"],"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1.operator","typeLabel":"enum\u003cstring>"},"rules":{"type":"array","items":{"type":"object","required":["type","operator"],"properties":{"type":{"type":"string","enum":["email","first_name","last_name","tags","language","attribute","subscribed_at","campaign","automation_mail","link","engagement","list"],"description":"The kind of condition. See the \"Segment conditions\" guide.","isRequired":true,"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","description":"Depends on the type. See Developers → Segments.","isRequired":true,"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].operator","typeLabel":"string"},"value":{"description":"Depending on the type: text, a number of days, a YYYY-MM-DD date, a language code; tag names or uuids for \"tags\"; the uuid of the campaign, the automation e-mail, the link or the list for \"campaign\", \"automation_mail\", \"link\" and \"list\".","uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].value","typeLabel":"any"},"key":{"type":"string","description":"The attribute's name, for the \"attribute\" type.","uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX].key","typeLabel":"string"}},"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1.rules.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1.rules","typeLabel":"object[]"}},"uniqueKey":"data.conditions.rules.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"data.conditions.rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.conditions.rules","typeLabel":"object[]"}},"example":{"operator":"and","rules":[{"type":"tags","operator":"has_any","value":["vip"]},{"type":"engagement","operator":"active_within_days","value":60}]},"uniqueKey":"data.conditions","typeLabel":"object"},"subscribers_count":{"type":"integer","description":"Left out of paginated listings: counting costs something.","uniqueKey":"data.subscribers_count","typeLabel":"integer"},"created_at":{"type":"string","format":"date-time","uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"Active VIP customers","list":"3c90c3cc-0d44-4b50-8888-8dd25736052a","conditions":{"operator":"and","rules":[{"type":"tags","operator":"has_any","value":["vip"]},{"type":"engagement","operator":"active_within_days","value":60}]},"subscribers_count":123,"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4d72fb3c-7d68-4910-8390-86978ff12c88":{"description":"The `Idempotency-Key` is longer than 255 characters.","content":{"application/json":{"schema":{"type":"object","required":["message","code","doc_url"],"properties":{"message":{"type":"string","description":"A sentence for a person, in the installation's language. It may be reworded: test `code`, not the message.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["address_suppressed","already_in_automation","automation_not_running","bad_request","batch_rejected","campaign_is_sending","campaign_not_ready","confirmation_not_needed","conflict","contact_not_found","content_missing","event_count_out_of_range","forbidden","idempotency_key_expired","idempotency_key_in_use","idempotency_key_reused","idempotency_key_too_long","invalid_request","licence_invalid","licence_revoked","mail_not_kept","method_not_allowed","missing_ability","monthly_quota_exceeded","no_team","not_found","payload_too_large","provider_error","queue_unavailable","rate_limited","recipient_missing","recipients_suppressed","role_not_allowed","sandbox_cannot_send","sender_not_allowed","sending_paused","server_error","service_unavailable","subscriber_limit_reached","team_access_lost","team_suspended","template_error","test_refused","too_many_recipients","two_factor_required","unauthenticated","undeliverable_address","validation_error"],"description":"What went wrong, in one stable snake_case word. Each one is explained at `doc_url`.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","description":"The page of the documentation that explains this code.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"The idempotency key is too long.","code":"idempotency_key_too_long","doc_url":"https://docs.lekalao.com/errors#idempotency_key_too_long"},"examples":{"Example":{"title":"Example","value":{"message":"The idempotency key is too long.","code":"idempotency_key_too_long","doc_url":"https://docs.lekalao.com/errors#idempotency_key_too_long"}}},"exampleType":"examples"}},"exampleType":"examples"},"95826a03-3455-43a5-9384-a13aacda2ee7":{"description":"No token, or an invalid or revoked one.","content":{"application/json":{"schema":{"type":"object","required":["message","code","doc_url"],"properties":{"message":{"type":"string","description":"A sentence for a person, in the installation's language. It may be reworded: test `code`, not the message.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["address_suppressed","already_in_automation","automation_not_running","bad_request","batch_rejected","campaign_is_sending","campaign_not_ready","confirmation_not_needed","conflict","contact_not_found","content_missing","event_count_out_of_range","forbidden","idempotency_key_expired","idempotency_key_in_use","idempotency_key_reused","idempotency_key_too_long","invalid_request","licence_invalid","licence_revoked","mail_not_kept","method_not_allowed","missing_ability","monthly_quota_exceeded","no_team","not_found","payload_too_large","provider_error","queue_unavailable","rate_limited","recipient_missing","recipients_suppressed","role_not_allowed","sandbox_cannot_send","sender_not_allowed","sending_paused","server_error","service_unavailable","subscriber_limit_reached","team_access_lost","team_suspended","template_error","test_refused","too_many_recipients","two_factor_required","unauthenticated","undeliverable_address","validation_error"],"description":"What went wrong, in one stable snake_case word. Each one is explained at `doc_url`.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","description":"The page of the documentation that explains this code.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Unauthenticated.","code":"unauthenticated","doc_url":"https://docs.lekalao.com/errors#unauthenticated"},"examples":{"Example":{"title":"Example","value":{"message":"Unauthenticated.","code":"unauthenticated","doc_url":"https://docs.lekalao.com/errors#unauthenticated"}}},"exampleType":"examples"}},"exampleType":"examples"},"2221d4e0-3621-4767-bcbc-09b634878def":{"description":"Not allowed. `code` says why: `missing_ability` (a read-only token on a write), `role_not_allowed` (the role of the token's owner), `team_suspended`, `team_access_lost` (the owner left the team), `two_factor_required` (the team asks every member for a second factor).","content":{"application/json":{"schema":{"type":"object","required":["message","code","doc_url"],"properties":{"message":{"type":"string","description":"A sentence for a person, in the installation's language. It may be reworded: test `code`, not the message.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["address_suppressed","already_in_automation","automation_not_running","bad_request","batch_rejected","campaign_is_sending","campaign_not_ready","confirmation_not_needed","conflict","contact_not_found","content_missing","event_count_out_of_range","forbidden","idempotency_key_expired","idempotency_key_in_use","idempotency_key_reused","idempotency_key_too_long","invalid_request","licence_invalid","licence_revoked","mail_not_kept","method_not_allowed","missing_ability","monthly_quota_exceeded","no_team","not_found","payload_too_large","provider_error","queue_unavailable","rate_limited","recipient_missing","recipients_suppressed","role_not_allowed","sandbox_cannot_send","sender_not_allowed","sending_paused","server_error","service_unavailable","subscriber_limit_reached","team_access_lost","team_suspended","template_error","test_refused","too_many_recipients","two_factor_required","unauthenticated","undeliverable_address","validation_error"],"description":"What went wrong, in one stable snake_case word. Each one is explained at `doc_url`.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","description":"The page of the documentation that explains this code.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"This team is suspended. Contact support.","code":"team_suspended","doc_url":"https://docs.lekalao.com/errors#team_suspended"},"examples":{"Example":{"title":"Example","value":{"message":"This team is suspended. Contact support.","code":"team_suspended","doc_url":"https://docs.lekalao.com/errors#team_suspended"}}},"exampleType":"examples"}},"exampleType":"examples"},"5a7f5745-72db-41e9-92ff-e8cdd0a882fe":{"description":"Nothing of that uuid in the token's team.","content":{"application/json":{"schema":{"type":"object","required":["message","code","doc_url"],"properties":{"message":{"type":"string","description":"A sentence for a person, in the installation's language. It may be reworded: test `code`, not the message.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["address_suppressed","already_in_automation","automation_not_running","bad_request","batch_rejected","campaign_is_sending","campaign_not_ready","confirmation_not_needed","conflict","contact_not_found","content_missing","event_count_out_of_range","forbidden","idempotency_key_expired","idempotency_key_in_use","idempotency_key_reused","idempotency_key_too_long","invalid_request","licence_invalid","licence_revoked","mail_not_kept","method_not_allowed","missing_ability","monthly_quota_exceeded","no_team","not_found","payload_too_large","provider_error","queue_unavailable","rate_limited","recipient_missing","recipients_suppressed","role_not_allowed","sandbox_cannot_send","sender_not_allowed","sending_paused","server_error","service_unavailable","subscriber_limit_reached","team_access_lost","team_suspended","template_error","test_refused","too_many_recipients","two_factor_required","unauthenticated","undeliverable_address","validation_error"],"description":"What went wrong, in one stable snake_case word. Each one is explained at `doc_url`.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","description":"The page of the documentation that explains this code.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Not found.","code":"not_found","doc_url":"https://docs.lekalao.com/errors#not_found"},"examples":{"Example":{"title":"Example","value":{"message":"Not found.","code":"not_found","doc_url":"https://docs.lekalao.com/errors#not_found"}}},"exampleType":"examples"}},"exampleType":"examples"},"59a5b340-b2e3-48d4-81cd-bf5709f0a32b":{"description":"A call with the same `Idempotency-Key` is still running. Try again a moment later.","content":{"application/json":{"schema":{"type":"object","required":["message","code","doc_url"],"properties":{"message":{"type":"string","description":"A sentence for a person, in the installation's language. It may be reworded: test `code`, not the message.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["address_suppressed","already_in_automation","automation_not_running","bad_request","batch_rejected","campaign_is_sending","campaign_not_ready","confirmation_not_needed","conflict","contact_not_found","content_missing","event_count_out_of_range","forbidden","idempotency_key_expired","idempotency_key_in_use","idempotency_key_reused","idempotency_key_too_long","invalid_request","licence_invalid","licence_revoked","mail_not_kept","method_not_allowed","missing_ability","monthly_quota_exceeded","no_team","not_found","payload_too_large","provider_error","queue_unavailable","rate_limited","recipient_missing","recipients_suppressed","role_not_allowed","sandbox_cannot_send","sender_not_allowed","sending_paused","server_error","service_unavailable","subscriber_limit_reached","team_access_lost","team_suspended","template_error","test_refused","too_many_recipients","two_factor_required","unauthenticated","undeliverable_address","validation_error"],"description":"What went wrong, in one stable snake_case word. Each one is explained at `doc_url`.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","description":"The page of the documentation that explains this code.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"A request with this idempotency key is already running.","code":"idempotency_key_in_use","doc_url":"https://docs.lekalao.com/errors#idempotency_key_in_use"},"examples":{"Example":{"title":"Example","value":{"message":"A request with this idempotency key is already running.","code":"idempotency_key_in_use","doc_url":"https://docs.lekalao.com/errors#idempotency_key_in_use"}}},"exampleType":"examples"}},"exampleType":"examples"},"6668cd41-349e-4cb0-8e33-3d07a89f1a1c":{"description":"Invalid data (`validation_error`), or an `Idempotency-Key` already used for another request (`idempotency_key_reused`) or older than 24 hours (`idempotency_key_expired`).","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"The email field must be a valid email address.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["address_suppressed","already_in_automation","automation_not_running","bad_request","batch_rejected","campaign_is_sending","campaign_not_ready","confirmation_not_needed","conflict","contact_not_found","content_missing","event_count_out_of_range","forbidden","idempotency_key_expired","idempotency_key_in_use","idempotency_key_reused","idempotency_key_too_long","invalid_request","licence_invalid","licence_revoked","mail_not_kept","method_not_allowed","missing_ability","monthly_quota_exceeded","no_team","not_found","payload_too_large","provider_error","queue_unavailable","rate_limited","recipient_missing","recipients_suppressed","role_not_allowed","sandbox_cannot_send","sender_not_allowed","sending_paused","server_error","service_unavailable","subscriber_limit_reached","team_access_lost","team_suspended","template_error","test_refused","too_many_recipients","two_factor_required","unauthenticated","undeliverable_address","validation_error"],"example":"validation_error","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"uniqueKey":"errors","typeLabel":"object"},"problem":{"oneOf":[{"type":"string","enum":["disposable","no_mail_server",null],"description":"Only when the address itself is refused: `disposable` (a throwaway mailbox) or `no_mail_server` (its domain receives no e-mail).","uniqueKey":"problem.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["disposable","no_mail_server",null],"description":"Only when the address itself is refused: `disposable` (a throwaway mailbox) or `no_mail_server` (its domain receives no e-mail).","uniqueKey":"problem.oneOf.1","typeLabel":"null"}],"uniqueKey":"problem","typeLabel":"enum\u003cstring> | null"},"suggestion":{"oneOf":[{"type":"string","format":"email","description":"With `problem`: the address the person very likely meant, when a common domain is one or two keystrokes away. Otherwise `null`.","uniqueKey":"suggestion.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"With `problem`: the address the person very likely meant, when a common domain is one or two keystrokes away. Otherwise `null`.","uniqueKey":"suggestion.oneOf.1","typeLabel":"null"}],"uniqueKey":"suggestion","typeLabel":"string\u003cemail> | null"}},"required":["message","code","doc_url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"The email field must be a valid email address.","code":"validation_error","doc_url":"\u003cstring>","errors":{},"problem":"disposable","suggestion":"jsmith@example.com"}}},"exampleType":"generated"}},"exampleType":"generated"},"bda92bca-5710-4379-b9a8-a2683e401528":{"description":"The token's limit is reached. Wait the number of seconds Retry-After gives.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Calls allowed per minute for this token."},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["message","code","doc_url"],"properties":{"message":{"type":"string","description":"A sentence for a person, in the installation's language. It may be reworded: test `code`, not the message.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["address_suppressed","already_in_automation","automation_not_running","bad_request","batch_rejected","campaign_is_sending","campaign_not_ready","confirmation_not_needed","conflict","contact_not_found","content_missing","event_count_out_of_range","forbidden","idempotency_key_expired","idempotency_key_in_use","idempotency_key_reused","idempotency_key_too_long","invalid_request","licence_invalid","licence_revoked","mail_not_kept","method_not_allowed","missing_ability","monthly_quota_exceeded","no_team","not_found","payload_too_large","provider_error","queue_unavailable","rate_limited","recipient_missing","recipients_suppressed","role_not_allowed","sandbox_cannot_send","sender_not_allowed","sending_paused","server_error","service_unavailable","subscriber_limit_reached","team_access_lost","team_suspended","template_error","test_refused","too_many_recipients","two_factor_required","unauthenticated","undeliverable_address","validation_error"],"description":"What went wrong, in one stable snake_case word. Each one is explained at `doc_url`.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"doc_url":{"type":"string","format":"uri","description":"The page of the documentation that explains this code.","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Too many requests. Try again in 12 seconds.","code":"rate_limited","doc_url":"https://docs.lekalao.com/errors#rate_limited"},"examples":{"Example":{"title":"Example","value":{"message":"Too many requests. Try again in 12 seconds.","code":"rate_limited","doc_url":"https://docs.lekalao.com/errors#rate_limited"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"87f09f49-73ef-4e5f-9063-0e3c9d075c26":{"bearer":{"type":"http","scheme":"bearer","description":"An API token. The \"read\" ability: GET routes only. \"read + write\": every route.","scopes":[],"schemeName":"bearer"}}},"servers":{"625bf61b-f921-4af5-aee2-6126e1725dc5":{"url":"https://api.lekalao.com","description":"Lekalao"},"6265c5f9-182f-47e2-b539-473ca46cdc4b":{"url":"https://{host}/api","description":"Your own installation","variables":{"host":{"default":"lekalao.example.com","description":"The domain of your installation"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API token. The \"read\" ability: GET routes only. \"read + write\": every route.","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API token. The \"read\" ability: GET routes only. \"read + write\": every route.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"lekalao","siteName":"Lekalao","title":"Change a segment - Lekalao","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/segments/change-a-segment","matchLevel":0},"fr":{"href":"/fr","matchLevel":4}}},"lastModified":"2026-11-01T00:09:26.200Z","originalFileLocation":"api-reference/segments/change-a-segment.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"keywords\" content=\"Lekalao, e-mail marketing, newsletter, transactional e-mail, e-mail API, campaigns, automations, deliverability\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lekalao\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Change a segment - Lekalao\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lekalao\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lekalao.com/api-reference/segments/change-a-segment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lekalao.mintlify.app/_mintlify/api/og/v2?division=Segments\u0026amp;title=Change+a+segment\u0026amp;theme=ec25875a866709f7372483cb\u0026amp;signature=f56c2d880d6287b477308076ec3b4a1a4f50b0922795bb29d5a7d4bbe926ce6c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Change a segment - Lekalao\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lekalao.mintlify.app/_mintlify/api/og/v2?division=Segments\u0026amp;title=Change+a+segment\u0026amp;theme=ec25875a866709f7372483cb\u0026amp;signature=f56c2d880d6287b477308076ec3b4a1a4f50b0922795bb29d5a7d4bbe926ce6c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lekalao/L7Vx8vzds__oYmHy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lekalao\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006C4D\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_GB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lekalao.com/api-reference/segments/change-a-segment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/segments/change-a-segment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://lekalao.com/#organization\",\"name\":\"Lekalao\",\"url\":\"https://lekalao.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lekalao/X2dfnmUN5ikXeFCy/logo/light.svg?fit=max\u0026auto=format\u0026n=X2dfnmUN5ikXeFCy\u0026q=85\u0026s=2e6970b4e9a452195680476cf2c13687\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lekalao.com#website\",\"name\":\"Lekalao\",\"url\":\"https://docs.lekalao.com\",\"publisher\":{\"@id\":\"https://lekalao.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment#webpage\",\"url\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment\",\"name\":\"Change a segment\",\"dateModified\":\"2026-11-01T00:09:26.200Z\",\"isPartOf\":{\"@id\":\"https://docs.lekalao.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Segments\",\"item\":\"https://docs.lekalao.com/api-reference/segments/list-the-segments-of-a-list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Change a segment\",\"item\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment#apireference\",\"headline\":\"Change a segment\",\"name\":\"Change a segment\",\"url\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lekalao.com/api-reference/segments/change-a-segment#webpage\"},\"dateModified\":\"2026-11-01T00:09:26.200Z\",\"publisher\":{\"@id\":\"https://lekalao.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lekalao.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lekalao\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Lekalao","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"User guide","icon":"book-open","pages":[{"title":"User guide","href":""}]},{"tab":"Developers","icon":"code","pages":[{"title":"Developers","href":"/developers/introduction"}]},{"tab":"API reference","icon":"square-terminal","groups":[{"group":"Overview","pages":[{"title":"API reference","icon":"book","href":"/api-reference/introduction"}]},{"group":"Lists","pages":[{"title":"List the e-mail lists","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lists","href":"/api-reference/lists/list-the-e-mail-lists"},{"title":"Create a list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists","href":"/api-reference/lists/create-a-list"},{"title":"Read one list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lists/{list}","href":"/api-reference/lists/read-one-list"},{"title":"Change a list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/lists/{list}","href":"/api-reference/lists/change-a-list"},{"title":"Delete a list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/lists/{list}","href":"/api-reference/lists/delete-a-list"}]},{"group":"Subscribers","pages":[{"title":"List the subscribers of a list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lists/{list}/subscribers","href":"/api-reference/subscribers/list-the-subscribers-of-a-list"},{"title":"Subscribe an address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists/{list}/subscribers","href":"/api-reference/subscribers/subscribe-an-address"},{"title":"Subscribe a batch of addresses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists/{list}/subscribers/batch","href":"/api-reference/subscribers/subscribe-a-batch-of-addresses"},{"title":"Read one subscriber","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/subscribers/{subscriber}","href":"/api-reference/subscribers/read-one-subscriber"},{"title":"Change a subscriber","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/subscribers/{subscriber}","href":"/api-reference/subscribers/change-a-subscriber"},{"title":"Delete a subscriber","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/subscribers/{subscriber}","href":"/api-reference/subscribers/delete-a-subscriber"},{"title":"Unsubscribe someone","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/subscribers/{subscriber}/unsubscribe","href":"/api-reference/subscribers/unsubscribe-someone"},{"title":"Subscribe someone again","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/subscribers/{subscriber}/resubscribe","href":"/api-reference/subscribers/subscribe-someone-again"},{"title":"Send the confirmation e-mail again","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/subscribers/{subscriber}/resend-confirmation","href":"/api-reference/subscribers/send-the-confirmation-e-mail-again"},{"title":"Add or remove tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/subscribers/{subscriber}/tags","href":"/api-reference/subscribers/add-or-remove-tags"}]},{"group":"Tags","pages":[{"title":"List the tags of a list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lists/{list}/tags","href":"/api-reference/tags/list-the-tags-of-a-list"},{"title":"Create a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists/{list}/tags","href":"/api-reference/tags/create-a-tag"},{"title":"Delete a tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/tags/{tag}","href":"/api-reference/tags/delete-a-tag"}]},{"group":"Segments","pages":[{"title":"List the segments of a list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lists/{list}/segments","href":"/api-reference/segments/list-the-segments-of-a-list"},{"title":"Create a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists/{list}/segments","href":"/api-reference/segments/create-a-segment"},{"title":"Read one segment","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/segments/{segment}","href":"/api-reference/segments/read-one-segment"},{"title":"Change a segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/segments/{segment}","href":"/api-reference/segments/change-a-segment"},{"title":"Delete a segment","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/segments/{segment}","href":"/api-reference/segments/delete-a-segment"}]},{"group":"Imports","pages":[{"title":"List the imports of a list","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lists/{list}/imports","href":"/api-reference/imports/list-the-imports-of-a-list"},{"title":"Import a file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists/{list}/imports","href":"/api-reference/imports/import-a-file"},{"title":"Follow an import","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/imports/{import}","href":"/api-reference/imports/follow-an-import"}]},{"group":"Templates","pages":[{"title":"List the templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates","href":"/api-reference/templates/list-the-templates"},{"title":"Create a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates","href":"/api-reference/templates/create-a-template"},{"title":"Read one template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/{template}","href":"/api-reference/templates/read-one-template"},{"title":"Change a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/templates/{template}","href":"/api-reference/templates/change-a-template"},{"title":"Delete a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/templates/{template}","href":"/api-reference/templates/delete-a-template"}]},{"group":"Campaigns","pages":[{"title":"List the campaigns","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/campaigns","href":"/api-reference/campaigns/list-the-campaigns"},{"title":"Create a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/campaigns","href":"/api-reference/campaigns/create-a-campaign"},{"title":"Read one campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/campaigns/{campaign}","href":"/api-reference/campaigns/read-one-campaign"},{"title":"Delete a campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/campaigns/{campaign}","href":"/api-reference/campaigns/delete-a-campaign"},{"title":"Send now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/campaigns/{campaign}/send","href":"/api-reference/campaigns/send-now"},{"title":"Send a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/campaigns/{campaign}/test","href":"/api-reference/campaigns/send-a-test"}]},{"group":"Automations","pages":[{"title":"List the automations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/automations","href":"/api-reference/automations/list-the-automations"},{"title":"Put someone into an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/automations/{automation}/trigger","href":"/api-reference/automations/put-someone-into-an-automation"}]},{"group":"Transactional e-mails","pages":[{"title":"Send a transactional e-mail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactional-mails/send","href":"/api-reference/transactional-e-mails/send-a-transactional-e-mail"},{"title":"List transactional e-mails","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/transactional-mails","href":"/api-reference/transactional-e-mails/list-transactional-e-mails"},{"title":"Read one transactional e-mail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/transactional-mails/{mail}","href":"/api-reference/transactional-e-mails/read-one-transactional-e-mail"},{"title":"Send a transactional e-mail again","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/transactional-mails/{mail}/resend","href":"/api-reference/transactional-e-mails/send-a-transactional-e-mail-again"}]},{"group":"Revenue","pages":[{"title":"Report a sale","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/conversions","href":"/api-reference/revenue/report-a-sale"},{"title":"Remove a sale","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/conversions/{conversion}","href":"/api-reference/revenue/remove-a-sale"}]},{"group":"Contact fields","pages":[{"title":"List the contact fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/fields","href":"/api-reference/contact-fields/list-the-contact-fields"},{"title":"Create a contact field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fields","href":"/api-reference/contact-fields/create-a-contact-field"},{"title":"Change a contact field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/fields/{field}","href":"/api-reference/contact-fields/change-a-contact-field"},{"title":"Delete a contact field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/fields/{field}","href":"/api-reference/contact-fields/delete-a-contact-field"}]},{"group":"Events","pages":[{"title":"Record an event, or a batch","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/events","href":"/api-reference/events/record-an-event-or-a-batch"},{"title":"List what one person did","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/events","href":"/api-reference/events/list-what-one-person-did"}]},{"group":"Webhooks","pages":[{"title":"List the outgoing webhooks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/webhooks","href":"/api-reference/webhooks/list-the-outgoing-webhooks"},{"title":"Register an outgoing webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/webhooks","href":"/api-reference/webhooks/register-an-outgoing-webhook"},{"title":"Remove an outgoing webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/webhooks/{webhook}","href":"/api-reference/webhooks/remove-an-outgoing-webhook"},{"title":"See what a call looks like","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/webhooks/samples/{event}","href":"/api-reference/webhooks/see-what-a-call-looks-like"}]},{"group":"Platform","pages":[{"title":"Whose token is this","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/me","href":"/api-reference/platform/whose-token-is-this"},{"title":"The installation's OpenAPI document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/openapi.json","href":"/api-reference/platform/the-installations-openapi-document"},{"title":"Check a licence key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/licences/check","href":"/api-reference/platform/check-a-licence-key"}]}]},{"tab":"Self-hosting","icon":"server","hidden":true,"pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]}]},{"language":"fr","navbar":{"links":[{"href":"/fr/api-reference/introduction","label":"Référence API"}],"primary":{"type":"button","label":"Démarrer","href":"/fr/guide/quickstart"}},"pages":[{"title":"fr","href":"/fr"}]}]},"basePath":"","title":"Change a segment - Lekalao","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-Bevw23-4.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}