Line-scoped keys: the list of a line-scoped key is not applied here. The key can change the metadata and the billing anchor of any line of its account.
Idempotency-Key: not honored. The operation merges, so the same request sent twice leaves the line in the same state.
Two fields, two changes: when the body carries both fields, billing_anchor_at is applied first and metadata second. If the metadata is refused, the change of the billing anchor is already stored.
Errors
Status
error.code
When
400
no_fields_to_patch
The body has neither metadata nor billing_anchor_at.
400
validation_failed
The metadata of the request holds more than 20 keys or more than 8,192 bytes, or billing_anchor_at is not an ISO 8601 timestamp with a Z suffix.
400
reserved_metadata_key
metadata names migration_ref or proof_line, even with null.
400
metadata_too_large
The merged metadata holds more than 20 keys or more than 8,192 bytes.
400
billing_anchor_too_far
billing_anchor_at is more than 31 days after the call.
404
not_found
No line has this id, or you do not own the line.
409
billing_anchor_change_conflict
The line changed owner during the call. Nothing was written.
The errors that every operation shares are in Errors.
Authorizations
Authorization
string
header
required
An API key created in the iSnap dashboard, or a trial key, sent as Authorization: Bearer <key>. An API key starts with isnap_live_ or isnap_test_; both act on the same account, lines and billing. A trial key acts on its trial only.
Path Parameters
id
string
required
Id of a line: line_ followed by 25 letters or digits.
Pattern: ^line_[0-9A-Za-z]{25}$
Body
application/json
Send metadata, billing_anchor_at, or both.
metadata
object
Keys to merge into the metadata of the line: a key with a value is set, a key with null is removed, a key you do not send is kept. The result holds at most 20 keys and 8,192 bytes once serialized as JSON (400 metadata_too_large); a request that only removes keys is never refused for the size of the result. The keys migration_ref and proof_line are reserved (400 reserved_metadata_key). Never put personal data or secrets in it.
Show child attributes
Example:
{ "crm_account_id": "acc_123" }
billing_anchor_at
string<date-time> | null
The billing anchor of the line: an ISO 8601 timestamp in UTC, with a Z suffix, or null to clear it. A line billed on the monthly wholesale invoice is charged one full month at each monthly occurrence of this timestamp: the same day of the month, moved to the last day of a shorter month, at the same time of day. Without a billing anchor, the line is billed at each monthly occurrence of its activation. A change applies from the next occurrence and does not alter a month already billed. A past timestamp is accepted. A timestamp more than 31 days after the request returns 400 billing_anchor_too_far. Sending the value the line already has changes nothing.
Example:
"2026-09-11T09:15:00Z"
Response
The updated line.
success
enum<boolean>
required
Always true on a success response.
Available options:
true
data
object
required
A line. billing_tier, byod, shared, test_line and inbound_only tell the kinds of line apart: a rented line (two-way or inbound-only), a BYOD line, a shared line, a test line.
Show child attributes
trace_id
string
required
Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.
request_id
string
required
Id of the request that produced this response: req_ followed by 25 letters or digits.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"iSnap","description":"Developer documentation for the iSnap API: send and receive iMessage, RCS and SMS from real devices, manage lines, and receive events by webhook.","colors":{"primary":"#09090b","light":"#fafafa","dark":"#09090b"},"logo":{"light":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=1208ab10ce8a1de87ddc30bbcaae611d","dark":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=8053b4f5aa88bba68e1dbf236c94e79b","href":"https://isnap.ai"},"favicon":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/favicon.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=a854eacec4807a19a4104fd0e6b72fd1","api":{"openapi":["api-reference/openapi.json"],"playground":{"display":"simple"}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#ffffff","dark":"#09090b"}},"navbar":{"links":[{"href":"https://platform.isnap.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Sign up","href":"https://platform.isnap.ai/signup"}},"search":{"prompt":"Search the iSnap docs..."},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"isnap","hasAudioNarration":false,"actualSubdomain":"isnap","customDomains":["docs.isnap.ai"],"gitSource":{"type":"github","owner":"whatsnap","repo":"isnap-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10e7239ffae5051c413bb3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad951ec97fabdbdfeb0f9c7","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API reference","count":74},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Webhooks","count":19},{"language":"default","tag":"Lines","count":15},{"language":"default","tag":"SDK","count":10},{"language":"default","tag":"Line lifecycle","count":9},{"language":"default","tag":"Webhook subscriptions","count":9},{"language":"default","tag":"Events","count":9},{"language":"default","tag":"Pre-orders","count":7},{"language":"default","tag":"Chats","count":6}]},"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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/lines/update-line","slug":"/api-reference/lines/update-line","pageMetadata":{"title":"Update the metadata or billing anchor of a line","description":"Merges metadata into a line you own, and sets or clears its billing anchor.","openapi":"PATCH /v1/lines/{id}","href":"/api-reference/lines/update-line"},"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: \"Merges metadata into a line you own, and sets or clears its billing anchor.\"\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={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Credential:`}),` an API key. The operation works on any line you own, in any status and of any kind. See `,_jsx(_components.a,{href:`/guides/managing-lines#metadata`,children:`Metadata`}),` and `,_jsx(_components.a,{href:`/guides/managing-lines#anniversary-and-billing-anchor`,children:`Anniversary and billing anchor`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Line-scoped keys:`}),` the list of a `,_jsx(_components.a,{href:`/authentication#line-scoped-keys`,children:`line-scoped key`}),` is not applied here. The key can change the `,_jsx(_components.code,{children:`metadata`}),` and the billing anchor of any line of its account.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),`:`]}),` not honored. The operation merges, so the same request sent twice leaves the line in the same state.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Events:`}),` none. See `,_jsx(_components.a,{href:`/webhooks/event-catalog#what-events-do-not-announce`,children:`What events do not announce`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Two fields, two changes:`}),` when the body carries both fields, `,_jsx(_components.code,{children:`billing_anchor_at`}),` is applied first and `,_jsx(_components.code,{children:`metadata`}),` second. If the `,_jsx(_components.code,{children:`metadata`}),` is refused, the change of the billing anchor is already stored.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`no_fields_to_patch`})}),_jsxs(_components.td,{children:[`The body has neither `,_jsx(_components.code,{children:`metadata`}),` nor `,_jsx(_components.code,{children:`billing_anchor_at`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`validation_failed`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`metadata`}),` of the request holds more than 20 keys or more than 8,192 bytes, or `,_jsx(_components.code,{children:`billing_anchor_at`}),` is not an ISO 8601 timestamp with a `,_jsx(_components.code,{children:`Z`}),` suffix.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reserved_metadata_key`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`metadata`}),` names `,_jsx(_components.code,{children:`migration_ref`}),` or `,_jsx(_components.code,{children:`proof_line`}),`, even with `,_jsx(_components.code,{children:`null`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata_too_large`})}),_jsxs(_components.td,{children:[`The merged `,_jsx(_components.code,{children:`metadata`}),` holds more than 20 keys or more than 8,192 bytes.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_anchor_too_far`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`billing_anchor_at`}),` is more than 31 days after the call.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsx(_components.td,{children:`No line has this id, or you do not own the line.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_anchor_change_conflict`})}),_jsx(_components.td,{children:`The line changed owner during the call. Nothing was written.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The errors that every operation shares are in `,_jsx(_components.a,{href:`/errors-and-rate-limits#errors`,children:`Errors`}),`.`]})]})}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 the metadata or billing anchor of a line","description":"Merges metadata into a line you own, and sets or clears its billing anchor.","openapi":"PATCH /v1/lines/{id}","href":"/api-reference/lines/update-line"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Update the metadata or billing anchor of a line","description":"Merges metadata into a line you own, and sets or clears its billing anchor.","security":["2b4bd853-3599-4bc0-a6bf-76ea9c7ff54a"],"parameters":["8d60e35f-2bca-4b96-b10b-6041c918ce8c"],"requestBody":"1fb55714-481c-40a3-b402-5486479d7432","responses":{"200":"f9c3cdea-6356-4381-bf19-096365329db8","400":"6b90b6bd-4901-40db-b28c-18d236ef4bd8","401":"0aeae4b2-8c5c-4bc3-b2c9-adfdd18a7c5c","403":"bf16aeca-701a-4f33-87c2-634c027c6c44","404":"56710888-b6b1-4585-bc9d-0d768a3cc486","429":"5ea99ec0-8522-4b86-a850-b5d8e9ca4c06","500":"52966c53-9f56-4130-8607-b39feef43dec"},"method":"patch","type":"path","servers":["13b85773-3d70-47e8-aa94-bbc0de8ddb38"],"path":"/v1/lines/{id}","baseUrlOptions":["https://api.isnap.ai"],"title":"Update the metadata or billing anchor of a line","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8d60e35f-2bca-4b96-b10b-6041c918ce8c":{"schema":{"type":"string","pattern":"^line_[0-9A-Za-z]{25}$","description":"Id of a line: `line_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"Id of a line: `line_` followed by 25 letters or digits.","name":"id","in":"path"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"metadata.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.additionalProperties","typeLabel":"null"},"description":"Keys to merge into the `metadata` of the line: a key with a value is set, a key with `null` is removed, a key you do not send is kept. The result holds at most 20 keys and 8,192 bytes once serialized as JSON (`400 metadata_too_large`); a request that only removes keys is never refused for the size of the result. The keys `migration_ref` and `proof_line` are reserved (`400 reserved_metadata_key`). Never put personal data or secrets in it.","example":{"crm_account_id":"acc_123"},"uniqueKey":"metadata","typeLabel":"object"},"billing_anchor_at":{"oneOf":[{"type":"string","format":"date-time","description":"The billing anchor of the line: an ISO 8601 timestamp in UTC, with a `Z` suffix, or `null` to clear it. A line billed on the monthly wholesale invoice is charged one full month at each monthly occurrence of this timestamp: the same day of the month, moved to the last day of a shorter month, at the same time of day. Without a billing anchor, the line is billed at each monthly occurrence of its activation. A change applies from the next occurrence and does not alter a month already billed. A past timestamp is accepted. A timestamp more than 31 days after the request returns `400 billing_anchor_too_far`. Sending the value the line already has changes nothing.","example":"2026-09-11T09:15:00Z","uniqueKey":"billing_anchor_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The billing anchor of the line: an ISO 8601 timestamp in UTC, with a `Z` suffix, or `null` to clear it. A line billed on the monthly wholesale invoice is charged one full month at each monthly occurrence of this timestamp: the same day of the month, moved to the last day of a shorter month, at the same time of day. Without a billing anchor, the line is billed at each monthly occurrence of its activation. A change applies from the next occurrence and does not alter a month already billed. A past timestamp is accepted. A timestamp more than 31 days after the request returns `400 billing_anchor_too_far`. Sending the value the line already has changes nothing.","example":"2026-09-11T09:15:00Z","uniqueKey":"billing_anchor_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_anchor_at","typeLabel":"string\u003cdate-time> | null"}},"description":"Send `metadata`, `billing_anchor_at`, or both.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"metadata":{"crm_account_id":"acc_123"},"billing_anchor_at":"2026-09-11T09:15:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f9c3cdea-6356-4381-bf19-096365329db8":{"description":"The updated line.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"description":"Always `true` on a success response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^line_[0-9A-Za-z]{25}$","description":"Id of a line: `line_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"phone_number":{"type":"string","description":"The phone number of the line in E.164 format. An empty string, never `null`, when the line has no number: a BYOD line whose device has not reported one, or a shared line. `GET /v1/attention` returns `null` for such a line. Masked on `GET /v1/lines`, and on `GET /v1/lines/{id}` unless the caller owns the line: `+1 (AAA) ***-**DD` for a North American number, the country code, asterisks and the last two digits for any other number.","isRequired":true,"uniqueKey":"data.phone_number","typeLabel":"string"},"area_code":{"oneOf":[{"type":"string","description":"The 3-digit North American area code of the number. `null` for any other number, and while the number is not known.","isRequired":true,"uniqueKey":"data.area_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The 3-digit North American area code of the number. `null` for any other number, and while the number is not known.","isRequired":true,"uniqueKey":"data.area_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.area_code","typeLabel":"string | null"},"country_code":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country of the number. `null` while the number is not known.","isRequired":true,"uniqueKey":"data.country_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 3166-1 alpha-2 country of the number. `null` while the number is not known.","isRequired":true,"uniqueKey":"data.country_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.country_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","description":"Two-letter code of the US state the area code belongs to. `null` outside the US, and while the number is not known.","isRequired":true,"uniqueKey":"data.state.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter code of the US state the area code belongs to. `null` outside the US, and while the number is not known.","isRequired":true,"uniqueKey":"data.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.state","typeLabel":"string | null"},"state_name":{"oneOf":[{"type":"string","description":"Name of that US state, for example `California`. `null` whenever `state` is `null`.","isRequired":true,"uniqueKey":"data.state_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of that US state, for example `California`. `null` whenever `state` is `null`.","isRequired":true,"uniqueKey":"data.state_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.state_name","typeLabel":"string | null"},"billing_tier":{"type":"string","enum":["rental_iphone","rental_android","byod_imessage","byod_android","shared_pool","shared_imessage"],"description":"The kind of line. `rental_iphone`: a rented line that sends iMessage and SMS. `rental_android`: a rented line that sends SMS and RCS. `byod_imessage`: a BYOD line on your own Mac and iPhone. `byod_android`: a BYOD line on your own Android phone. `shared_imessage`: a shared line. `shared_pool`: a test line when `test_line` is `true`, otherwise a dedicated pool line: a line of iSnap that is dedicated to your account.","isRequired":true,"uniqueKey":"data.billing_tier","typeLabel":"enum\u003cstring>"},"byod":{"type":"boolean","description":"`true` for a BYOD line, which runs on your own device: `billing_tier` is `byod_imessage` or `byod_android`.","isRequired":true,"uniqueKey":"data.byod","typeLabel":"boolean"},"inbound_only":{"type":"boolean","description":"`true` for an inbound-only line: it can message a contact only after that contact has messaged it. A send to any other handle returns `403 outbound_first_forbidden`. Only a rented line can be inbound-only: always `false` on BYOD, shared and test lines.","isRequired":true,"uniqueKey":"data.inbound_only","typeLabel":"boolean"},"status":{"type":"string","description":"One of six values. `provisioning`: the line is being prepared for one of your pre-orders. `available`: the line belongs to no account and can be reserved or assigned. `reserved`: the line is reserved for one account until `expires_at`; it is not billed and cannot send. `active`: the line belongs to its owner; it is the only status in which a line sends. `suspended`: the line still belongs to its owner but cannot send (`403 line_suspended`); a line billed by a per-line subscription is suspended when a payment for it fails, iSnap can also suspend a line, and no API operation ends a suspension. `cancelled`: the line is ended for good and keeps its owner.","isRequired":true,"uniqueKey":"data.status","typeLabel":"string"},"monthly_price":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated. Catalog price of this kind of line, in US cents. It is not the amount billed for the line. Removed in the next major version: no removal date is set.","isRequired":true,"uniqueKey":"data.monthly_price","typeLabel":"integer"},"stripe_subscription_id":{"oneOf":[{"type":"string","description":"Id of the per-line subscription that bills the line. `null` on a line billed on the monthly wholesale invoice, on BYOD, shared and test lines, and on a rented line that a direct account received by transfer while the line was not `active`.","isRequired":true,"uniqueKey":"data.stripe_subscription_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the per-line subscription that bills the line. `null` on a line billed on the monthly wholesale invoice, on BYOD, shared and test lines, and on a rented line that a direct account received by transfer while the line was not `active`.","isRequired":true,"uniqueKey":"data.stripe_subscription_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.stripe_subscription_id","typeLabel":"string | null"},"activated_at":{"oneOf":[{"type":"string","description":"Timestamp at which the line became `active` (ISO 8601, UTC). `null` on a line that was never activated, and again on a line that returned to the marketplace. A transfer to a wholesale partner sets it to the time of the transfer; a transfer to a direct account keeps the earlier value.","isRequired":true,"uniqueKey":"data.activated_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp at which the line became `active` (ISO 8601, UTC). `null` on a line that was never activated, and again on a line that returned to the marketplace. A transfer to a wholesale partner sets it to the time of the transfer; a transfer to a direct account keeps the earlier value.","isRequired":true,"uniqueKey":"data.activated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.activated_at","typeLabel":"string | null"},"expires_at":{"oneOf":[{"type":"string","description":"End of the reservation (ISO 8601, UTC): 15 minutes after the line was reserved. Read it only while `status` is `reserved`: in any other status it is `null` or a past timestamp.","isRequired":true,"uniqueKey":"data.expires_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"End of the reservation (ISO 8601, UTC): 15 minutes after the line was reserved. Read it only while `status` is `reserved`: in any other status it is `null` or a past timestamp.","isRequired":true,"uniqueKey":"data.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.expires_at","typeLabel":"string | null"},"anniversary_at":{"oneOf":[{"type":"string","description":"The anniversary of the line: the timestamp at which you took it (ISO 8601, UTC). `POST /v1/lines/{id}/cancel` ends the line at the next occurrence of this timestamp. iSnap sets it each time a line becomes a wholesale partner's, a transfer included, and `POST /v1/lines/{id}/anniversary` replaces it. A conversion to a test line and back keeps it. `null` on a line owned by a direct account or by no account, and on a line of a wholesale partner whose anniversary was never set.","isRequired":true,"uniqueKey":"data.anniversary_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"The anniversary of the line: the timestamp at which you took it (ISO 8601, UTC). `POST /v1/lines/{id}/cancel` ends the line at the next occurrence of this timestamp. iSnap sets it each time a line becomes a wholesale partner's, a transfer included, and `POST /v1/lines/{id}/anniversary` replaces it. A conversion to a test line and back keeps it. `null` on a line owned by a direct account or by no account, and on a line of a wholesale partner whose anniversary was never set.","isRequired":true,"uniqueKey":"data.anniversary_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.anniversary_at","typeLabel":"string | null"},"cancel_at":{"oneOf":[{"type":"string","description":"Timestamp at which iSnap ends this line (ISO 8601, UTC). Set by `POST /v1/lines/{id}/cancel` and cleared by `POST /v1/lines/{id}/uncancel`. The line works and is billed as before until then. `null` when no end is scheduled. A line that ended at this date keeps the value. On a test line ended with `POST /v1/lines/{id}/terminate`, it holds the time the line ended.","isRequired":true,"uniqueKey":"data.cancel_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"Timestamp at which iSnap ends this line (ISO 8601, UTC). Set by `POST /v1/lines/{id}/cancel` and cleared by `POST /v1/lines/{id}/uncancel`. The line works and is billed as before until then. `null` when no end is scheduled. A line that ended at this date keeps the value. On a test line ended with `POST /v1/lines/{id}/terminate`, it holds the time the line ended.","isRequired":true,"uniqueKey":"data.cancel_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.cancel_at","typeLabel":"string | null"},"billing_anchor_at":{"oneOf":[{"type":"string","description":"The billing anchor you stated for this line (ISO 8601, UTC): a line billed on the monthly wholesale invoice is billed at each monthly occurrence of this timestamp. `null` when you stated none: the line is then billed at each monthly occurrence of `activated_at`. State it with `POST /v1/pre-orders`, `POST /v1/lines/{id}/activate` or `PATCH /v1/lines/{id}`. A change applies from the next occurrence and does not alter a month already billed.","isRequired":true,"uniqueKey":"data.billing_anchor_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"The billing anchor you stated for this line (ISO 8601, UTC): a line billed on the monthly wholesale invoice is billed at each monthly occurrence of this timestamp. `null` when you stated none: the line is then billed at each monthly occurrence of `activated_at`. State it with `POST /v1/pre-orders`, `POST /v1/lines/{id}/activate` or `PATCH /v1/lines/{id}`. A change applies from the next occurrence and does not alter a month already billed.","isRequired":true,"uniqueKey":"data.billing_anchor_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.billing_anchor_at","typeLabel":"string | null"},"next_anchor_at":{"oneOf":[{"type":"string","description":"For a line billed on the monthly wholesale invoice: the next timestamp at which it is billed (ISO 8601, UTC). It is the next occurrence, strictly after the read, of `billing_anchor_at`, or of `activated_at` when no billing anchor is stated: the same day of the month, moved to the last day of a shorter month, at the same time of day. `null` when the line is not `active` or `suspended`, when it was never activated, and when its `cancel_at` falls on or before that occurrence. A line billed by a per-line subscription also carries a value here, which does not tell when that line is billed.","isRequired":true,"uniqueKey":"data.next_anchor_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"For a line billed on the monthly wholesale invoice: the next timestamp at which it is billed (ISO 8601, UTC). It is the next occurrence, strictly after the read, of `billing_anchor_at`, or of `activated_at` when no billing anchor is stated: the same day of the month, moved to the last day of a shorter month, at the same time of day. `null` when the line is not `active` or `suspended`, when it was never activated, and when its `cancel_at` falls on or before that occurrence. A line billed by a per-line subscription also carries a value here, which does not tell when that line is billed.","isRequired":true,"uniqueKey":"data.next_anchor_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.next_anchor_at","typeLabel":"string | null"},"pending_variant":{"oneOf":[{"type":"object","properties":{"inbound_only":{"type":"boolean","description":"The value `inbound_only` takes when the change applies.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.0.inbound_only","typeLabel":"boolean"},"effective_at":{"type":"string","description":"The billing anchor occurrence at which the change applies (ISO 8601, UTC). iSnap applies it after this timestamp, and before it charges the line for the month that starts then: the API does not bound the delay.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.0.effective_at","typeLabel":"string"}},"required":["inbound_only","effective_at"],"description":"The variant change scheduled for this line, or `null` when none is pending. The `inbound_only` field of the line keeps its value until the change applies. Schedule a change with `POST /v1/lines/{id}/variant` and `effective: \"next_anchor\"`; withdraw it with `DELETE /v1/lines/{id}/variant`. It becomes `null` when the change is applied, when it is withdrawn, when it can no longer apply at its date, when the line becomes a test line, and when the line leaves its owner without ending. A line that ends keeps its `pending_variant`, and the change never applies.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"inbound_only":{"type":"boolean","description":"The value `inbound_only` takes when the change applies."},"effective_at":{"type":"string","description":"The billing anchor occurrence at which the change applies (ISO 8601, UTC). iSnap applies it after this timestamp, and before it charges the line for the month that starts then: the API does not bound the delay."}},"required":["inbound_only","effective_at"],"description":"The variant change scheduled for this line, or `null` when none is pending. The `inbound_only` field of the line keeps its value until the change applies. Schedule a change with `POST /v1/lines/{id}/variant` and `effective: \"next_anchor\"`; withdraw it with `DELETE /v1/lines/{id}/variant`. It becomes `null` when the change is applied, when it is withdrawn, when it can no longer apply at its date, when the line becomes a test line, and when the line leaves its owner without ending. A line that ends keeps its `pending_variant`, and the change never applies.","isRequired":true,"uniqueKey":"data.pending_variant.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.pending_variant","typeLabel":"object | null"},"created_at":{"type":"string","description":"Timestamp at which iSnap created the line (ISO 8601, UTC). It is not the date you acquired the line.","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.metadata.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata.oneOf.0.additionalProperties","typeLabel":"null"},"description":"Your own key-value data on the line. `null` when the line has none. A line created with `\"metadata\": {}` reads `{}`: treat `null` and `{}` the same. It is part of the line object for every caller, `GET /v1/lines` and `GET /v1/lines/{id}` included, and a line that returns to the marketplace keeps it: never put personal data or secrets in it.","isRequired":true,"uniqueKey":"data.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.metadata.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata.oneOf.1.additionalProperties","typeLabel":"null"},"description":"Your own key-value data on the line. `null` when the line has none. A line created with `\"metadata\": {}` reads `{}`: treat `null` and `{}` the same. It is part of the line object for every caller, `GET /v1/lines` and `GET /v1/lines/{id}` included, and a line that returns to the marketplace keeps it: never put personal data or secrets in it.","isRequired":true,"uniqueKey":"data.metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.metadata","typeLabel":"object | null"},"test_line":{"type":"boolean","description":"`true` for a test line: a line you set aside to host the trials of your own prospects. Its `billing_tier` is `shared_pool`.","isRequired":true,"uniqueKey":"data.test_line","typeLabel":"boolean"},"shared":{"type":"boolean","description":"`true` for a shared line, which has no device and no phone number of its own: its `billing_tier` is `shared_imessage` and its `phone_number` is an empty string.","isRequired":true,"uniqueKey":"data.shared","typeLabel":"boolean"},"capabilities":{"oneOf":[{"description":"The services the line sends, as an array of lowercase names: `[\"imessage\", \"sms\"]` on `rental_iphone` and `byod_imessage` lines, `[\"sms\", \"rcs\"]` on `rental_android` and `byod_android` lines, `[\"imessage\"]` on a shared line. A test line that you made from a rented line keeps the array of that line. On a dedicated pool line, and on a test line that iSnap created for your account, the array does not tell the services and can be `[\"sms\"]`: such a line is an iMessage line.","uniqueKey":"data.capabilities.oneOf.0","typeLabel":"any"},{"description":"The services the line sends, as an array of lowercase names: `[\"imessage\", \"sms\"]` on `rental_iphone` and `byod_imessage` lines, `[\"sms\", \"rcs\"]` on `rental_android` and `byod_android` lines, `[\"imessage\"]` on a shared line. A test line that you made from a rented line keeps the array of that line. On a dedicated pool line, and on a test line that iSnap created for your account, the array does not tell the services and can be `[\"sms\"]`: such a line is an iMessage line.","type":"null","uniqueKey":"data.capabilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.capabilities","typeLabel":"any | null"},"fulfillment_status":{"oneOf":[{"type":"string","description":"Present only on `GET /v1/lines/my`. `open` while an order for this line is still being fulfilled, `null` otherwise.","uniqueKey":"data.fulfillment_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present only on `GET /v1/lines/my`. `open` while an order for this line is still being fulfilled, `null` otherwise.","uniqueKey":"data.fulfillment_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.fulfillment_status","typeLabel":"string | null"}},"required":["id","phone_number","area_code","country_code","state","state_name","billing_tier","byod","inbound_only","status","monthly_price","stripe_subscription_id","activated_at","expires_at","anniversary_at","cancel_at","billing_anchor_at","next_anchor_at","pending_variant","created_at","metadata","test_line","shared"],"description":"A line. `billing_tier`, `byod`, `shared`, `test_line` and `inbound_only` tell the kinds of line apart: a rented line (two-way or inbound-only), a BYOD line, a shared line, a test line.","isRequired":true,"uniqueKey":"data","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","trace_id","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"\u003cstring>","phone_number":"\u003cstring>","area_code":"\u003cstring>","country_code":"\u003cstring>","state":"\u003cstring>","state_name":"\u003cstring>","billing_tier":"rental_iphone","byod":true,"inbound_only":true,"status":"\u003cstring>","monthly_price":1,"stripe_subscription_id":"\u003cstring>","activated_at":"\u003cstring>","expires_at":"\u003cstring>","anniversary_at":"\u003cstring>","cancel_at":"\u003cstring>","billing_anchor_at":"\u003cstring>","next_anchor_at":"\u003cstring>","pending_variant":{"inbound_only":true,"effective_at":"\u003cstring>"},"created_at":"\u003cstring>","metadata":{},"test_line":true,"shared":true,"capabilities":"\u003cunknown>","fulfillment_status":"\u003cstring>"},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6b90b6bd-4901-40db-b28c-18d236ef4bd8":{"description":"Invalid request. `validation_failed`: the path or the body does not match its schema, or `metadata` exceeds 20 keys or 8,192 bytes. `no_fields_to_patch`: the body has neither `metadata` nor `billing_anchor_at`. `reserved_metadata_key`: `metadata` names `migration_ref` or `proof_line`. `metadata_too_large`: the merged `metadata` exceeds 20 keys or 8,192 bytes. `billing_anchor_too_far`: `billing_anchor_at` is more than 31 days after the request.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"0aeae4b2-8c5c-4bc3-b2c9-adfdd18a7c5c":{"description":"No valid credential. `error.code` is `unauthorized`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"bf16aeca-701a-4f33-87c2-634c027c6c44":{"description":"Refused. `forbidden`: the request carries neither an API key in its `Authorization` header nor the header `X-Requested-With: XMLHttpRequest`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"56710888-b6b1-4585-bc9d-0d768a3cc486":{"description":"Not found. `not_found`: the line does not exist, or it is not yours.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5ea99ec0-8522-4b86-a850-b5d8e9ca4c06":{"description":"Too many requests. `error.code` is `rate_limit_exceeded` when more than 100 requests came from the same network address in 60 seconds, whatever their API key or account: wait `error.retry_after` seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"52966c53-9f56-4130-8607-b39feef43dec":{"description":"Unexpected failure. `error.code` is `internal_error`. An operation that takes a JSON body also returns it when the body, sent as `application/json`, is not valid JSON. Quote `trace_id` when you report it to iSnap.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2b4bd853-3599-4bc0-a6bf-76ea9c7ff54a":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"13b85773-3d70-47e8-aa94-bbc0de8ddb38":{"url":"https://api.isnap.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"isnap","siteName":"iSnap","title":"Update the metadata or billing anchor of a line - iSnap","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T21:37:58.872Z","originalFileLocation":"api-reference/lines/update-line.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=\"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=\"description\" content=\"Merges metadata into a line you own, and sets or clears its billing anchor.\">\u003cmeta data-mint-head name=\"application-name\" content=\"iSnap\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_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/isnap/MAUBHsnI8bnMXK2C/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update the metadata or billing anchor of a line - iSnap\">\u003cmeta data-mint-head property=\"og:description\" content=\"Merges metadata into a line you own, and sets or clears its billing anchor.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"iSnap\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.isnap.ai/api-reference/lines/update-line\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://isnap.mintlify.site/_mintlify/api/og/v2?division=Lines\u0026amp;title=Update+the+metadata+or+billing+anchor+of+a+line\u0026amp;description=Merges+metadata+into+a+line+you+own%2C+and+sets+or+clears+its+billing+anchor.\u0026amp;theme=f241cf48d31b6385a79939a4\u0026amp;signature=022f05323db47c69e3e59912be08f4682936eb78058869f8c8dae24d4867ecbf\">\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 the metadata or billing anchor of a line - iSnap\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Merges metadata into a line you own, and sets or clears its billing anchor.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://isnap.mintlify.site/_mintlify/api/og/v2?division=Lines\u0026amp;title=Update+the+metadata+or+billing+anchor+of+a+line\u0026amp;description=Merges+metadata+into+a+line+you+own%2C+and+sets+or+clears+its+billing+anchor.\u0026amp;theme=f241cf48d31b6385a79939a4\u0026amp;signature=022f05323db47c69e3e59912be08f4682936eb78058869f8c8dae24d4867ecbf\">\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/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"iSnap\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#09090b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.isnap.ai/api-reference/lines/update-line\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/lines/update-line.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.isnap.ai/#organization\",\"name\":\"iSnap\",\"url\":\"https://docs.isnap.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=1208ab10ce8a1de87ddc30bbcaae611d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.isnap.ai#website\",\"name\":\"iSnap\",\"url\":\"https://docs.isnap.ai\",\"publisher\":{\"@id\":\"https://docs.isnap.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.isnap.ai/api-reference/lines/update-line#webpage\",\"url\":\"https://docs.isnap.ai/api-reference/lines/update-line\",\"name\":\"Update the metadata or billing anchor of a line\",\"description\":\"Merges metadata into a line you own, and sets or clears its billing anchor.\",\"dateModified\":\"2026-10-12T21:37:58.872Z\",\"isPartOf\":{\"@id\":\"https://docs.isnap.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.isnap.ai/api-reference/lines/update-line#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.isnap.ai/api-reference/lines/update-line#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lines\",\"item\":\"https://docs.isnap.ai/api-reference/lines/list-available-lines\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update the metadata or billing anchor of a line\",\"item\":\"https://docs.isnap.ai/api-reference/lines/update-line\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.isnap.ai/api-reference/lines/update-line#apireference\",\"headline\":\"Update the metadata or billing anchor of a line\",\"name\":\"Update the metadata or billing anchor of a line\",\"description\":\"Merges metadata into a line you own, and sets or clears its billing anchor.\",\"url\":\"https://docs.isnap.ai/api-reference/lines/update-line\",\"mainEntityOfPage\":{\"@id\":\"https://docs.isnap.ai/api-reference/lines/update-line#webpage\"},\"dateModified\":\"2026-10-12T21:37:58.872Z\",\"publisher\":{\"@id\":\"https://docs.isnap.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.isnap.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"iSnap\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"iSnap\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/lines/update-line.md","siteName":"iSnap","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/overview"}]},{"tab":"API reference","groups":[{"group":"API reference","pages":[{"title":"API reference","sidebarTitle":"Overview","href":"/api-reference/introduction"},{"title":"Changelog","href":"/changelog"}]},{"group":"Messages","pages":[{"title":"Send a message","openapi":"POST /v1/messages","href":"/api-reference/messages/send-message"},{"title":"List messages","openapi":"GET /v1/messages","href":"/api-reference/messages/list-messages"},{"title":"Get a message","openapi":"GET /v1/messages/{id}","href":"/api-reference/messages/get-message"},{"title":"Cancel a message","openapi":"DELETE /v1/messages/{id}","href":"/api-reference/messages/cancel-message"},{"title":"Add a reaction","openapi":"POST /v1/messages/{id}/reactions","href":"/api-reference/messages/add-reaction"},{"title":"Remove a reaction","openapi":"DELETE /v1/messages/{id}/reactions","href":"/api-reference/messages/remove-reaction"}]},{"group":"Chats","pages":[{"title":"List chats","openapi":"GET /v1/chats","href":"/api-reference/chats/list-chats"},{"title":"Get a chat","openapi":"GET /v1/chats/{chat_id}","href":"/api-reference/chats/get-chat"},{"title":"Mark a chat as read","openapi":"POST /v1/chats/{chat_id}/read","href":"/api-reference/chats/mark-chat-read"},{"title":"Show the typing indicator","openapi":"POST /v1/chats/{chat_id}/typing","href":"/api-reference/chats/start-typing"},{"title":"Clear the typing indicator","openapi":"DELETE /v1/chats/{chat_id}/typing","href":"/api-reference/chats/stop-typing"},{"title":"Send a contact card","openapi":"POST /v1/chats/{chat_id}/share-contact-card","href":"/api-reference/chats/share-contact-card"}]},{"group":"Attachments","pages":[{"title":"Create an attachment","openapi":"POST /v1/attachments","href":"/api-reference/attachments/create-attachment"},{"title":"Get an attachment","openapi":"GET /v1/attachments/{id}","href":"/api-reference/attachments/get-attachment"}]},{"group":"Recipient lookup","pages":[{"title":"Look up a recipient","openapi":"POST /v1/lookup","href":"/api-reference/lookup/look-up-recipient"}]},{"group":"Lines","pages":[{"title":"List available lines","openapi":"GET /v1/lines","href":"/api-reference/lines/list-available-lines"},{"title":"Get a line","openapi":"GET /v1/lines/{id}","href":"/api-reference/lines/get-line"},{"title":"List your active and reserved lines","description":"Lists the lines of your account whose status is active or reserved.","openapi":"GET /v1/lines/my","href":"/api-reference/lines/list-my-lines"},{"title":"Update the metadata or billing anchor of a line","openapi":"PATCH /v1/lines/{id}","href":"/api-reference/lines/update-line"},{"title":"Reserve a line","description":"Reserves an available line for your account for 15 minutes.","openapi":"POST /v1/lines/{id}/reserve","href":"/api-reference/lines/reserve-line"},{"title":"Activate a reserved line","openapi":"POST /v1/lines/{id}/activate","href":"/api-reference/lines/activate-line"},{"title":"Release a reserved line","openapi":"POST /v1/lines/{id}/release","href":"/api-reference/lines/release-line"},{"title":"Assign a line","openapi":"POST /v1/lines/assign","href":"/api-reference/lines/assign-line"},{"title":"Create a shared line","openapi":"POST /v1/lines/shared","href":"/api-reference/lines/create-shared-line"}]},{"group":"Line lifecycle","pages":[{"title":"Terminate a line","openapi":"POST /v1/lines/{id}/terminate","href":"/api-reference/lines/terminate-line"},{"title":"Cancel a line at its next anniversary","openapi":"POST /v1/lines/{id}/cancel","href":"/api-reference/lines/cancel-line"},{"title":"Uncancel a line","openapi":"POST /v1/lines/{id}/uncancel","href":"/api-reference/lines/uncancel-line"},{"title":"Set the anniversary of a line","openapi":"POST /v1/lines/{id}/anniversary","href":"/api-reference/lines/set-line-anniversary"},{"title":"Change the variant of a line","openapi":"POST /v1/lines/{id}/variant","href":"/api-reference/lines/change-line-variant"},{"title":"Withdraw a scheduled variant change","openapi":"DELETE /v1/lines/{id}/variant","href":"/api-reference/lines/cancel-variant-change"},{"title":"Convert a line to a test line","openapi":"POST /v1/lines/{id}/convert-to-test","href":"/api-reference/lines/convert-to-test-line"},{"title":"Convert a test line back to a rented line","openapi":"POST /v1/lines/{id}/convert-from-test","href":"/api-reference/lines/convert-from-test-line"},{"title":"Transfer a line to another account","openapi":"POST /v1/lines/{id}/transfer-ownership","href":"/api-reference/lines/transfer-line"}]},{"group":"Line configuration and state","pages":[{"title":"Get the configuration of a line","openapi":"GET /v1/lines/{id}/config","href":"/api-reference/lines/get-line-config"},{"title":"Update the configuration of a line","openapi":"PATCH /v1/lines/{id}/config","href":"/api-reference/lines/update-line-config"},{"title":"Get the sending limits of a line","openapi":"GET /v1/lines/{id}/quota","href":"/api-reference/lines/get-line-sending-limits"},{"title":"List the queue of a line","openapi":"GET /v1/lines/{id}/queue","href":"/api-reference/lines/get-line-queue"},{"title":"Get the health of a BYOD line","openapi":"GET /v1/lines/{id}/health","href":"/api-reference/lines/get-line-health"},{"title":"List the lines that need attention","openapi":"GET /v1/attention","href":"/api-reference/lines/list-attention"}]},{"group":"Webhook subscriptions","pages":[{"title":"Create a webhook subscription","openapi":"POST /v1/webhooks","href":"/api-reference/webhooks/create-webhook"},{"title":"List webhook subscriptions","openapi":"GET /v1/webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Get a webhook subscription","openapi":"GET /v1/webhooks/{id}","href":"/api-reference/webhooks/get-webhook"},{"title":"Update a webhook subscription","openapi":"PATCH /v1/webhooks/{id}","href":"/api-reference/webhooks/update-webhook"},{"title":"Delete a webhook subscription","openapi":"DELETE /v1/webhooks/{id}","href":"/api-reference/webhooks/delete-webhook"},{"title":"Rotate a signing secret","openapi":"POST /v1/webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-webhook-secret"},{"title":"List the deliveries of a webhook subscription","openapi":"GET /v1/webhooks/{id}/deliveries","href":"/api-reference/webhooks/list-webhook-deliveries"},{"title":"Replay a delivery","openapi":"POST /v1/webhooks/{id}/deliveries/{delivery_id}/replay","href":"/api-reference/webhooks/replay-webhook-delivery"},{"title":"List the events feed","openapi":"GET /v1/webhooks/events","href":"/api-reference/webhooks/list-webhook-events"}]},{"group":"Trials","pages":[{"title":"Start a trial","openapi":"POST /v1/trial/init","href":"/api-reference/trials/start-trial"},{"title":"Get the pairing status of a trial","openapi":"GET /v1/trial/status","href":"/api-reference/trials/get-trial-status"},{"title":"Get the activity of a trial","openapi":"GET /v1/trial/activity","href":"/api-reference/trials/get-trial-activity"},{"title":"Get a trial","openapi":"GET /v1/trial/{trial_id}","href":"/api-reference/trials/get-trial"},{"title":"Update the metadata of a trial","openapi":"PATCH /v1/trial/{trial_id}","href":"/api-reference/trials/update-trial"},{"title":"Revoke a trial","openapi":"POST /v1/trial/{trial_id}/revoke","href":"/api-reference/trials/revoke-trial"}]},{"group":"BYOD","pages":[{"title":"Issue a BYOD activation code","openapi":"POST /v1/byod/pair","href":"/api-reference/byod/start-byod-pairing"},{"title":"Get the bridge app downloads","openapi":"GET /v1/apps","href":"/api-reference/byod/get-app-downloads"}]},{"group":"Pre-orders","pages":[{"title":"Create a pre-order","openapi":"POST /v1/pre-orders","href":"/api-reference/pre-orders/create-pre-order"},{"title":"List pre-orders","openapi":"GET /v1/pre-orders","href":"/api-reference/pre-orders/list-pre-orders"},{"title":"Get a pre-order","openapi":"GET /v1/pre-orders/{id}","href":"/api-reference/pre-orders/get-pre-order"},{"title":"Update the metadata of a pre-order","openapi":"PATCH /v1/pre-orders/{id}","href":"/api-reference/pre-orders/update-pre-order"},{"title":"Confirm a pre-order","openapi":"POST /v1/pre-orders/{id}/confirm","href":"/api-reference/pre-orders/confirm-pre-order"},{"title":"Cancel a pre-order","openapi":"POST /v1/pre-orders/{id}/cancel","href":"/api-reference/pre-orders/cancel-pre-order"},{"title":"List area codes","openapi":"GET /v1/area-codes","href":"/api-reference/pre-orders/list-area-codes"}]},{"group":"Hosted macOS sessions","pages":[{"title":"Rent a hosted macOS session","openapi":"POST /v1/macos-sessions/rent","href":"/api-reference/macos-sessions/rent-macos-session"},{"title":"Get a hosted macOS session","openapi":"GET /v1/macos-sessions/{id}","href":"/api-reference/macos-sessions/get-macos-session"},{"title":"Update the metadata of a hosted macOS session","openapi":"PATCH /v1/macos-sessions/{id}","href":"/api-reference/macos-sessions/update-macos-session"},{"title":"Cancel a hosted macOS session at its next anniversary","openapi":"POST /v1/macos-sessions/{id}/cancel","href":"/api-reference/macos-sessions/cancel-macos-session"},{"title":"Uncancel a hosted macOS session","openapi":"POST /v1/macos-sessions/{id}/uncancel","href":"/api-reference/macos-sessions/uncancel-macos-session"}]},{"group":"Service","pages":[{"title":"Get the health of the API","openapi":"GET /v1/health","href":"/api-reference/service/get-health"},{"title":"Get the version of the API","openapi":"GET /v1/version","href":"/api-reference/service/get-version"}]}]}]},"basePath":"","title":"Update the metadata or billing anchor of a line - iSnap","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}