You cannot update the stream_id of an existing HTTP pull consumer.
string
required
The ID of the consumer.
string
Where in the stream the consumer starts.
all (default): the consumer will start from the beginning of the stream.
new: the consumer will start from the most recent message.
last: the consumer will start from the last message it received.
1h: the consumer will start from the most recent message from the last hour.
If you change the deliver_policy on the consumer, records may be replayed. For example, if you change the deliver_policy from new to all, the consumer will start from the beginning of the stream and replay all records.
integer
How long to wait for a message to be acknowledged, in milliseconds. Defaults to 30000 (30 seconds).If a worker doesn’t acknowledge a message within this time, the message will be redelivered (i.e. reappear for other workers to process).
integer
Maximum number of times a message can be redelivered to workers. For example, if a message causes your workers to crash, it will be redelivered up to max_deliver times before being discarded.Defaults to -1, which means there is no maximum.
integer
Maximum number of outstanding, acknowledged messages a consumer will allow at a time. Defaults to 1000.After your workers have checked out max_ack_pending messages, the consumer will stop delivering messages until some are acknowledged.
object
Metadata for the consumer. This is a JSON object that you can use to store any additional information you want to associate with the consumer.
all (default): the consumer will start from the beginning of the stream.
new: the consumer will start from the most recent message.
last: the consumer will start from the last message it received.
1h: the consumer will start from the most recent message from the last hour.
integer
How long to wait for a message to be acknowledged, in milliseconds. Defaults to 30000 (30 seconds).If a worker doesn’t acknowledge a message within this time, the message will be redelivered (i.e. reappear for other workers to process).
integer
Maximum number of times a message can be redelivered to workers. For example, if a message causes your workers to crash, it will be redelivered up to max_deliver times before being discarded.Defaults to -1, which means there is no maximum.
integer
Maximum number of outstanding, acknowledged messages a consumer will allow at a time. Defaults to 1000.After your workers have checked out max_ack_pending messages, the consumer will stop delivering messages until some are acknowledged.
object
Metadata for the sync. This is a JSON object that you can use to store any additional information you want to associate with the sync.
string
Timestamp of when the sync was created, in ISO 8601 format.
string
Timestamp of when the sync was last updated, in ISO 8601 format.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Sequin","colors":{"primary":"#0E0E0E","light":"#474747","dark":"#0E0E0E"},"favicon":"https://mintcdn.com/sequin/3H0rKJAg0ey1fqux/favicon.png?fit=max\u0026auto=format\u0026n=3H0rKJAg0ey1fqux\u0026q=85\u0026s=844e5576b8c7a8a6538e26b68501cd24","logo":{"light":"https://mintcdn.com/sequin/gPSFPT8nToU0KAMP/logo/light.png?fit=max\u0026auto=format\u0026n=gPSFPT8nToU0KAMP\u0026q=85\u0026s=859caa53641359662caa08142ec7b4ed","dark":"https://mintcdn.com/sequin/gPSFPT8nToU0KAMP/logo/dark.png?fit=max\u0026auto=format\u0026n=gPSFPT8nToU0KAMP\u0026q=85\u0026s=c1bf0bfc90ce1ee47177b313941732bc","href":"https://sequin.io"},"api":{"mdx":{"server":"https://api.sequin.io","auth":{"method":"bearer","name":"Authorization"}}},"navbar":{"links":[{"label":"Sign Up","href":"https://console.sequin.io/signup"}],"primary":{"type":"button","label":"Log In","href":"https://app.sequin.io/"}},"footer":{"socials":{"twitter":"https://twitter.com/sequin_io?lang=en","linkedin":"https://www.linkedin.com/company/sequin-io/"}},"integrations":{"koala":{"publicApiKey":"pk_8642121e4de1150877a41ae366edb9f8cb6a"},"posthog":{"apiKey":"phc_5KzGq2JZfLZuRRBZfTHaSG9kBZLsnmb9fJDpup45pNw"},"intercom":{"appId":"btt358pc"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sequin","hasAudioNarration":false,"actualSubdomain":"sequin","customDomains":["sequin.io"],"gitSource":{"type":"github","owner":"sequin-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"issues":false,"edits":false},"entitlements":{},"buildId":"6ae91e427ec93727a5a3d29d:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Management API","count":68},{"language":"default","tag":"General","count":25},{"language":"default","tag":"Streams","count":11},{"language":"default","tag":"How to","count":7},{"language":"default","tag":"Upsert to Postgres","count":6},{"language":"default","tag":"Consumers","count":6},{"language":"default","tag":"Mutations","count":6},{"language":"default","tag":"Credentials","count":5},{"language":"default","tag":"OAuth apps","count":5},{"language":"default","tag":"Syncs","count":5}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"management-api/consumers/update","slug":"/management-api/consumers/update","pageMetadata":{"title":"Update a Consumer","description":"This endpoint updates a Consumer.","api":"PATCH /v1/http-consumers/{id}","href":"/management-api/consumers/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This endpoint updates a Consumer.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,ParamField,ResponseField,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request parameters`}),`\n`,_jsxs(Note,{children:[`You cannot update the `,_jsx(_components.code,{children:`stream_id`}),` of an existing HTTP pull consumer.`]}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The ID of the consumer.`})}),`\n`,_jsxs(ParamField,{body:`deliver_policy`,type:`string`,id:`param-deliver-policy`,children:[_jsx(_components.p,{children:`Where in the stream the consumer starts.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`all`}),` (default): the consumer will start from the beginning of the stream.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`new`}),`: the consumer will start from the most recent message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`last`}),`: the consumer will start from the last message it received.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1h`}),`: the consumer will start from the most recent message from the last hour.`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`If you change the `,_jsx(_components.code,{children:`deliver_policy`}),` on the consumer, records may be replayed. For example, if you change the `,_jsx(_components.code,{children:`deliver_policy`}),` from `,_jsx(_components.code,{children:`new`}),` to `,_jsx(_components.code,{children:`all`}),`, the consumer will start from the beginning of the stream and replay all records.`]})})]}),`\n`,_jsxs(ResponseField,{name:`ack_wait_ms`,type:`integer`,id:`param-ack-wait-ms`,children:[_jsxs(_components.p,{children:[`How long to wait for a message to be acknowledged, in milliseconds. Defaults to `,_jsx(_components.code,{children:`30000`}),` (30 seconds).`]}),_jsx(_components.p,{children:`If a worker doesn’t acknowledge a message within this time, the message will be redelivered (i.e. reappear for other workers to process).`})]}),`\n`,_jsxs(ResponseField,{name:`max_deliver`,type:`integer`,id:`param-max-deliver`,children:[_jsxs(_components.p,{children:[`Maximum number of times a message can be redelivered to workers. For example, if a message causes your workers to crash, it will be redelivered up to `,_jsx(_components.code,{children:`max_deliver`}),` times before being discarded.`]}),_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`-1`}),`, which means there is no maximum.`]})]}),`\n`,_jsxs(ResponseField,{name:`max_ack_pending`,type:`integer`,id:`param-max-ack-pending`,children:[_jsxs(_components.p,{children:[`Maximum number of outstanding, acknowledged messages a consumer will allow at a time. Defaults to `,_jsx(_components.code,{children:`1000`}),`.`]}),_jsxs(_components.p,{children:[`After your workers have checked out `,_jsx(_components.code,{children:`max_ack_pending`}),` messages, the consumer will stop delivering messages until some are acknowledged.`]})]}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Metadata for the consumer. This is a JSON object that you can use to store any additional information you want to associate with the consumer.`})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response fields`}),`\n`,`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`ID of the consumer.`})}),`\n`,_jsx(ResponseField,{name:`stream_id`,type:`string`,id:`param-stream-id`,children:_jsx(_components.p,{children:`ID of the stream the consumer reads from.`})}),`\n`,_jsxs(ResponseField,{name:`deliver_policy`,type:`string`,id:`param-deliver-policy-1`,children:[_jsx(_components.p,{children:`Where in the stream the consumer starts.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`all`}),` (default): the consumer will start from the beginning of the stream.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`new`}),`: the consumer will start from the most recent message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`last`}),`: the consumer will start from the last message it received.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1h`}),`: the consumer will start from the most recent message from the last hour.`]}),`\n`]})]}),`\n`,_jsxs(ResponseField,{name:`ack_wait_ms`,type:`integer`,id:`param-ack-wait-ms-1`,children:[_jsxs(_components.p,{children:[`How long to wait for a message to be acknowledged, in milliseconds. Defaults to `,_jsx(_components.code,{children:`30000`}),` (30 seconds).`]}),_jsx(_components.p,{children:`If a worker doesn’t acknowledge a message within this time, the message will be redelivered (i.e. reappear for other workers to process).`})]}),`\n`,_jsxs(ResponseField,{name:`max_deliver`,type:`integer`,id:`param-max-deliver-1`,children:[_jsxs(_components.p,{children:[`Maximum number of times a message can be redelivered to workers. For example, if a message causes your workers to crash, it will be redelivered up to `,_jsx(_components.code,{children:`max_deliver`}),` times before being discarded.`]}),_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`-1`}),`, which means there is no maximum.`]})]}),`\n`,_jsxs(ResponseField,{name:`max_ack_pending`,type:`integer`,id:`param-max-ack-pending-1`,children:[_jsxs(_components.p,{children:[`Maximum number of outstanding, acknowledged messages a consumer will allow at a time. Defaults to `,_jsx(_components.code,{children:`1000`}),`.`]}),_jsxs(_components.p,{children:[`After your workers have checked out `,_jsx(_components.code,{children:`max_ack_pending`}),` messages, the consumer will stop delivering messages until some are acknowledged.`]})]}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Metadata for the sync. This is a JSON object that you can use to store any additional information you want to associate with the sync.`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`Timestamp of when the sync was created, in ISO 8601 format.`})}),`\n`,_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:_jsx(_components.p,{children:`Timestamp of when the sync was last updated, in ISO 8601 format.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a Consumer","description":"This endpoint updates a Consumer.","api":"PATCH /v1/http-consumers/{id}","href":"/management-api/consumers/update"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request parameters`}),`\n`,_jsxs(Note,{children:[`You cannot update the `,_jsx(_components.code,{children:`stream_id`}),` of an existing HTTP pull consumer.`]}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The ID of the consumer.`})}),`\n`,_jsxs(ParamField,{body:`deliver_policy`,type:`string`,id:`param-deliver-policy`,children:[_jsx(_components.p,{children:`Where in the stream the consumer starts.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`all`}),` (default): the consumer will start from the beginning of the stream.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`new`}),`: the consumer will start from the most recent message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`last`}),`: the consumer will start from the last message it received.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1h`}),`: the consumer will start from the most recent message from the last hour.`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`If you change the `,_jsx(_components.code,{children:`deliver_policy`}),` on the consumer, records may be replayed. For example, if you change the `,_jsx(_components.code,{children:`deliver_policy`}),` from `,_jsx(_components.code,{children:`new`}),` to `,_jsx(_components.code,{children:`all`}),`, the consumer will start from the beginning of the stream and replay all records.`]})})]}),`\n`,_jsxs(ResponseField,{name:`ack_wait_ms`,type:`integer`,id:`param-ack-wait-ms`,children:[_jsxs(_components.p,{children:[`How long to wait for a message to be acknowledged, in milliseconds. Defaults to `,_jsx(_components.code,{children:`30000`}),` (30 seconds).`]}),_jsx(_components.p,{children:`If a worker doesn’t acknowledge a message within this time, the message will be redelivered (i.e. reappear for other workers to process).`})]}),`\n`,_jsxs(ResponseField,{name:`max_deliver`,type:`integer`,id:`param-max-deliver`,children:[_jsxs(_components.p,{children:[`Maximum number of times a message can be redelivered to workers. For example, if a message causes your workers to crash, it will be redelivered up to `,_jsx(_components.code,{children:`max_deliver`}),` times before being discarded.`]}),_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`-1`}),`, which means there is no maximum.`]})]}),`\n`,_jsxs(ResponseField,{name:`max_ack_pending`,type:`integer`,id:`param-max-ack-pending`,children:[_jsxs(_components.p,{children:[`Maximum number of outstanding, acknowledged messages a consumer will allow at a time. Defaults to `,_jsx(_components.code,{children:`1000`}),`.`]}),_jsxs(_components.p,{children:[`After your workers have checked out `,_jsx(_components.code,{children:`max_ack_pending`}),` messages, the consumer will stop delivering messages until some are acknowledged.`]})]}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Metadata for the consumer. This is a JSON object that you can use to store any additional information you want to associate with the consumer.`})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Update a consumer`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.sequin.io/v1/http-consumers/c906b4a4-0cda-4f46-bd80-255f570c195d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_API_TOKEN'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"deliver_policy\": \"all\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_ack_pending\": 20000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ack_wait_ms\": 10000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Choam Corp - Primary Consumer\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": { \"custom_property\": 42 }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response fields`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200 OK`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c906b4a4-0cda-4f46-bd80-255f570c195d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stream_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f0f70b52-5243-489c-879b-a1ae3f02abfd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deliver_policy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"all\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ack_wait_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_deliver\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_ack_pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Choam Corp - Primary Consumer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"custom_property\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-12-15 01:29:29\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-12-15 01:29:29\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`ID of the consumer.`})}),`\n`,_jsx(ResponseField,{name:`stream_id`,type:`string`,id:`param-stream-id`,children:_jsx(_components.p,{children:`ID of the stream the consumer reads from.`})}),`\n`,_jsxs(ResponseField,{name:`deliver_policy`,type:`string`,id:`param-deliver-policy-1`,children:[_jsx(_components.p,{children:`Where in the stream the consumer starts.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`all`}),` (default): the consumer will start from the beginning of the stream.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`new`}),`: the consumer will start from the most recent message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`last`}),`: the consumer will start from the last message it received.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1h`}),`: the consumer will start from the most recent message from the last hour.`]}),`\n`]})]}),`\n`,_jsxs(ResponseField,{name:`ack_wait_ms`,type:`integer`,id:`param-ack-wait-ms-1`,children:[_jsxs(_components.p,{children:[`How long to wait for a message to be acknowledged, in milliseconds. Defaults to `,_jsx(_components.code,{children:`30000`}),` (30 seconds).`]}),_jsx(_components.p,{children:`If a worker doesn’t acknowledge a message within this time, the message will be redelivered (i.e. reappear for other workers to process).`})]}),`\n`,_jsxs(ResponseField,{name:`max_deliver`,type:`integer`,id:`param-max-deliver-1`,children:[_jsxs(_components.p,{children:[`Maximum number of times a message can be redelivered to workers. For example, if a message causes your workers to crash, it will be redelivered up to `,_jsx(_components.code,{children:`max_deliver`}),` times before being discarded.`]}),_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`-1`}),`, which means there is no maximum.`]})]}),`\n`,_jsxs(ResponseField,{name:`max_ack_pending`,type:`integer`,id:`param-max-ack-pending-1`,children:[_jsxs(_components.p,{children:[`Maximum number of outstanding, acknowledged messages a consumer will allow at a time. Defaults to `,_jsx(_components.code,{children:`1000`}),`.`]}),_jsxs(_components.p,{children:[`After your workers have checked out `,_jsx(_components.code,{children:`max_ack_pending`}),` messages, the consumer will stop delivering messages until some are acknowledged.`]})]}),`\n`,_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Metadata for the sync. This is a JSON object that you can use to store any additional information you want to associate with the sync.`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`Timestamp of when the sync was created, in ISO 8601 format.`})}),`\n`,_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:_jsx(_components.p,{children:`Timestamp of when the sync was last updated, in ISO 8601 format.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a Consumer","description":"This endpoint updates a Consumer.","api":"PATCH /v1/http-consumers/{id}","href":"/management-api/consumers/update"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request parameters","slug":"request-parameters","depth":2,"children":[]},{"title":"Response fields","slug":"response-fields","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Update a consumer","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> PATCH\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.sequin.io/v1/http-consumers/c906b4a4-0cda-4f46-bd80-255f570c195d\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer YOUR_API_TOKEN'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"deliver_policy\": \"all\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"max_ack_pending\": 20000,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"ack_wait_ms\": 10000,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Choam Corp - Primary Consumer\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"metadata\": { \"custom_property\": 42 }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 OK","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"c906b4a4-0cda-4f46-bd80-255f570c195d\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"stream_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"f0f70b52-5243-489c-879b-a1ae3f02abfd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"deliver_policy\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"all\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ack_wait_ms\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">30000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"max_deliver\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">-1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"max_ack_pending\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Choam Corp - Primary Consumer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"custom_property\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">42\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-12-15 01:29:29\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-12-15 01:29:29\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Update a Consumer","path":"/v1/http-consumers/{id}","servers":[{"url":"https://api.sequin.io"}],"method":"patch","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id":{"schema":[{"type":"string","description":"The ID of the consumer.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"deliver_policy":[{"type":"string","description":"Where in the stream the consumer starts. `all` (default): the consumer will start from the beginning of the stream. `new` : the consumer will start from the most recent message. `last` : the consumer will start from the last message it received. `1h` : the consumer will start from the most recent message from the last hour."}],"metadata":[{"type":"object","properties":{},"description":"Metadata for the consumer. This is a JSON object that you can use to store any additional information you want to associate with the consumer."}]}}],"examples":{"example":{"value":{"deliver_policy":"\u003cstring>","metadata":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"ack_wait_ms":[{"type":"integer","description":"How long to wait for a message to be acknowledged, in milliseconds. Defaults to `30000` (30 seconds). If a worker doesn’t acknowledge a message within this time, the message will be redelivered (i.e. reappear for other workers to process)."}],"max_deliver":[{"type":"integer","description":"Maximum number of times a message can be redelivered to workers. For example, if a message causes your workers to crash, it will be redelivered up to `max_deliver` times before being discarded. Defaults to `-1` , which means there is no maximum."}],"max_ack_pending":[{"type":"integer","description":"Maximum number of outstanding, acknowledged messages a consumer will allow at a time. Defaults to `1000` . After your workers have checked out `max_ack_pending` messages, the consumer will stop delivering messages until some are acknowledged."}],"id":[{"type":"string","description":"ID of the consumer."}],"stream_id":[{"type":"string","description":"ID of the stream the consumer reads from."}],"deliver_policy":[{"type":"string","description":"Where in the stream the consumer starts. `all` (default): the consumer will start from the beginning of the stream. `new` : the consumer will start from the most recent message. `last` : the consumer will start from the last message it received. `1h` : the consumer will start from the most recent message from the last hour."}],"metadata":[{"type":"object","properties":{},"description":"Metadata for the sync. This is a JSON object that you can use to store any additional information you want to associate with the sync."}],"created_at":[{"type":"string","description":"Timestamp of when the sync was created, in ISO 8601 format."}],"updated_at":[{"type":"string","description":"Timestamp of when the sync was last updated, in ISO 8601 format."}]}}],"examples":{"example":{"value":{"ack_wait_ms":123,"max_deliver":123,"max_ack_pending":123,"id":"\u003cstring>","stream_id":"\u003cstring>","deliver_policy":"\u003cstring>","metadata":{},"created_at":"\u003cstring>","updated_at":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"sequin","siteName":"Sequin","title":"Update a Consumer - Sequin","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-14T01:15:10.837Z","originalFileLocation":"management-api/consumers/update.mdx"},"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=\"system\"}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=\"description\" content=\"This endpoint updates a Consumer.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sequin\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_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=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a Consumer - Sequin\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint updates a Consumer.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sequin\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://sequin.io/docs/management-api/consumers/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sequin.mintlify.site/docs/_mintlify/api/og/v2?division=Consumers\u0026amp;title=Update+a+Consumer\u0026amp;description=This+endpoint+updates+a+Consumer.\u0026amp;theme=48ed114f1f0d2fe771b0544c\u0026amp;signature=e1c4d15a899a46f97a62cee012eecdc3e7a838dd2506dce213a743a3acf51a82\">\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=\"Update a Consumer - Sequin\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint updates a Consumer.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sequin.mintlify.site/docs/_mintlify/api/og/v2?division=Consumers\u0026amp;title=Update+a+Consumer\u0026amp;description=This+endpoint+updates+a+Consumer.\u0026amp;theme=48ed114f1f0d2fe771b0544c\u0026amp;signature=e1c4d15a899a46f97a62cee012eecdc3e7a838dd2506dce213a743a3acf51a82\">\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=\"/docs/mintlify-assets/_mintlify/favicons/sequin/uiE1W50_U5tk7R0l/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sequin\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E0E0E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://sequin.io/docs/management-api/consumers/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/management-api/consumers/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://sequin.io/#organization\",\"name\":\"Sequin\",\"url\":\"https://sequin.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sequin/gPSFPT8nToU0KAMP/logo/light.png?fit=max\u0026auto=format\u0026n=gPSFPT8nToU0KAMP\u0026q=85\u0026s=859caa53641359662caa08142ec7b4ed\"}},{\"@type\":\"WebSite\",\"@id\":\"https://sequin.io/docs#website\",\"name\":\"Sequin\",\"url\":\"https://sequin.io/docs\",\"publisher\":{\"@id\":\"https://sequin.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://sequin.io/docs/management-api/consumers/update#webpage\",\"url\":\"https://sequin.io/docs/management-api/consumers/update\",\"name\":\"Update a Consumer\",\"description\":\"This endpoint updates a Consumer.\",\"dateModified\":\"2026-05-14T01:15:10.837Z\",\"isPartOf\":{\"@id\":\"https://sequin.io/docs#website\"},\"breadcrumb\":{\"@id\":\"https://sequin.io/docs/management-api/consumers/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://sequin.io/docs/management-api/consumers/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Management API\",\"item\":\"https://sequin.io/docs/management-api/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Consumers\",\"item\":\"https://sequin.io/docs/management-api/consumers/list\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a Consumer\",\"item\":\"https://sequin.io/docs/management-api/consumers/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://sequin.io/docs/management-api/consumers/update#apireference\",\"headline\":\"Update a Consumer\",\"name\":\"Update a Consumer\",\"description\":\"This endpoint updates a Consumer.\",\"url\":\"https://sequin.io/docs/management-api/consumers/update\",\"mainEntityOfPage\":{\"@id\":\"https://sequin.io/docs/management-api/consumers/update#webpage\"},\"dateModified\":\"2026-05-14T01:15:10.837Z\",\"publisher\":{\"@id\":\"https://sequin.io/#organization\"},\"isPartOf\":{\"@id\":\"https://sequin.io/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sequin\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sequin\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/management-api/consumers/update.md","siteName":"Sequin","nav":{"global":null,"tabs":[{"tab":"General","pages":[{"title":"General","href":"/introduction"}]},{"tab":"Management API","groups":[{"group":"Management API","pages":[{"title":"Introduction","href":"/management-api/introduction"},{"title":"Authentication","href":"/management-api/authentication"},{"title":"Objects","href":"/management-api/objects"},{"title":"Errors","href":"/management-api/errors"},{"group":"Streams","pages":[{"title":"List streams","api":"GET /v1/streams","href":"/management-api/streams/list"},{"title":"Get a stream","api":"GET /v1/streams/{id}","href":"/management-api/streams/get"},{"title":"Create a stream","api":"POST /v1/streams","href":"/management-api/streams/create"},{"title":"Update a stream","api":"PATCH /v1/streams/{id}","href":"/management-api/streams/update"},{"title":"Delete a stream","api":"DELETE /v1/streams/{id}","href":"/management-api/streams/delete"}]},{"group":"Syncs","pages":[{"title":"List syncs","api":"GET /v1/syncs","href":"/management-api/syncs/list"},{"title":"Get a sync","api":"GET /v1/syncs/{id}","href":"/management-api/syncs/get"},{"title":"Create a sync","api":"POST /v1/syncs","href":"/management-api/syncs/create"},{"title":"Update a sync","api":"PATCH /v1/syncs/{id}","href":"/management-api/syncs/update"},{"title":"Delete a sync","api":"DELETE /v1/syncs/{id}","href":"/management-api/syncs/delete"}]},{"group":"Consumers","pages":[{"title":"List Consumers","api":"GET /v1/http-consumers","href":"/management-api/consumers/list"},{"title":"Get a Consumer","api":"GET /v1/http-consumers/{id}","href":"/management-api/consumers/get"},{"title":"Create a Consumer","description":"This endpoint creates a Consumer.","api":"POST /v1/http-consumers","href":"/management-api/consumers/create"},{"title":"Update a Consumer","api":"PATCH /v1/http-consumers/{id}","href":"/management-api/consumers/update"},{"title":"Delete a Consumer","description":"This endpoint deletes a Consumer.","api":"DELETE /v1/http-consumers/{id}","href":"/management-api/consumers/delete"},{"title":"Reset a Consumer","api":"POST /v1/http-consumers/{id}/reset","href":"/management-api/consumers/reset"}]},{"group":"Credentials","pages":[{"title":"List credentials","api":"GET /v1/credentials","href":"/management-api/credentials/list"},{"title":"Get a credential","api":"GET /v1/credentials/{id}","href":"/management-api/credentials/get"},{"title":"Import a credential","api":"POST /v1/credentials/{id}","href":"/management-api/credentials/create"},{"title":"Update a credential","api":"PATCH /v1/credentials/{id}","href":"/management-api/credentials/update"},{"title":"Delete a credential","api":"DELETE /v1/credentials/{id}","href":"/management-api/credentials/delete"}]},{"group":"OAuth apps","pages":[{"title":"List OAuth apps","api":"GET /v1/oauth-apps","href":"/management-api/oauth-apps/list"},{"title":"Get an OAuth app","api":"GET /v1/oauth-apps/{id}","href":"/management-api/oauth-apps/get"},{"title":"Create an OAuth app","api":"POST /v1/oauth-apps","href":"/management-api/oauth-apps/create"},{"title":"Update an OAuth app","api":"PATCH /v1/oauth-apps/{id}","href":"/management-api/oauth-apps/update"},{"title":"Delete an OAuth app","api":"DELETE /v1/oauth-apps/{id}","href":"/management-api/oauth-apps/delete"}]},{"group":"Collections","pages":[{"title":"List collections","api":"GET /v1/collections/{credential_id}","href":"/management-api/collections/list"},{"title":"Get a collection","api":"GET /v1/collections/{credential_id}/{id}","href":"/management-api/collections/get"},{"title":"Get collection refresh status","api":"GET /v1/collections/{credential_id}/refresh/status","href":"/management-api/collections/get-refresh-status"},{"title":"Start collection refresh","api":"POST /v1/collections/{credential_id}/refresh/start","href":"/management-api/collections/start-refresh"}]}]}]}]},"basePath":"","title":"Update a Consumer - Sequin","buildId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","deploymentId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CQGbdtm4.js","utils-D88A1f-Z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChqWdz1A.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-yBrxdh_6.js","snippetPresets-BgqDrFJC.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Duxc2rZw.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C7jidOil.js","shallow-xkjpHm-U.js","getApiPlaygroundDisplay-fE3rVpvL.js","CodeSnippet-LgxljKed.js","CodeSnippets-D-pXWDHq.js","Page-C2-BijcO.js","getPastedJson-CLRcu-uo.js","icon-Cxirpjgo.js","MethodPill-D49eqY5e.js","DuplicateIcon-CivCz5Rp.js","createIcon-D71qL3f5.js","DynamicMarkdown-BcGRTrw6.js","SectionHeading-DzaqmmSD.js","axios-vUo_bRtp.js"]}