Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the options or the dataSource, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is multiline, when it has neither.
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "entity": "contract", "fieldKey": "canalDeVenda", "dataType": "string", "label": "Canal de venda", "description": "Canal pelo qual o cliente compra.", "required": true, "defaultValue": "varejo", "options": [ { "label": "Varejo", "value": "varejo" } ], "dataSource": "customers", "multiline": true, "module": "omie"}
Authorizations
X-API-KEY
string
header
required
API Key Authentication.
Path Parameters
id
string<uuid>
required
The unique identifier of the custom field.
Body
application/json
The attributes of the custom field to change, at least one. The attributes that the body leaves out keep their values.
label
string
The name of the custom field that the billing app shows.
Minimum string length: 1
Example:
"Canal de venda"
description
null | string
The help text that the billing app shows with the input of the custom field, or null for none.
Example:
"Canal pelo qual o cliente compra."
required
boolean
Whether each record of the entity must hold a value of the custom field.
defaultValue
null | string
The value that the billing app fills in on a new record, or null for none.
Example:
"varejo"
options
null | object[]
The values that a record can hold in the custom field, in the order that the billing app shows them, or null when the custom field takes any value. When the body names options or dataSource, the two replace the values that the custom field takes, so the one that the body leaves out becomes null.
Minimum array length: 1
Show child attributes
dataSource
null | enum<string>
The records whose ids a record holds in the custom field, in place of options: customers for the customers, and omie_categories or omie_bank_accounts for the categories or the bank accounts of Omie, or null for none. When the body names options or dataSource, the two replace the values that the custom field takes, so the one that the body leaves out becomes null.
Available options:
customers,
omie_categories,
omie_bank_accounts,
null
multiline
boolean
Whether the billing app shows the input of the custom field as a text area of several lines, in place of a text input of one line. Only a custom field of string with no options and no dataSource is multiline.
Response
A custom field: a field that you add to one kind of record, such as customers or contracts, whose value users fill in on each record. Each record of that kind holds the value in its customFields, under the fieldKey.
id
string<uuid>
required
The unique identifier of the custom field.
entity
enum<string>
required
The kind of record that the custom field belongs to, such as customer or contract.
Available options:
contract,
product,
item,
customer,
importable_template,
legal_entity,
revenue_traceability,
revenue_attribution,
invoice_discount,
invoice,
plan_instance_version
fieldKey
string
required
The key under which each record of the entity holds the value of the custom field in its customFields. No other custom field of the same entity has it.
Example:
"canalDeVenda"
dataType
enum<string>
required
The type of the value of the custom field: string holds one text, string_array holds a list of texts, and boolean holds the text true or false.
Available options:
string,
string_array,
boolean
label
string
required
The name of the custom field that the billing app shows.
Minimum string length: 1
Example:
"Canal de venda"
description
null | string
required
The help text that the billing app shows with the input of the custom field, or null for none.
Example:
"Canal pelo qual o cliente compra."
required
boolean
required
Whether each record of the entity must hold a value of the custom field.
defaultValue
null | string
required
The value that the billing app fills in on a new record, or null for none.
Example:
"varejo"
options
null | object[]
required
The values that a record can hold in the custom field, in the order that the billing app shows them, or null when the custom field takes any value.
Show child attributes
dataSource
null | enum<string>
required
The records whose ids a record holds in the custom field, in place of options: customers for the customers, and omie_categories or omie_bank_accounts for the categories or the bank accounts of Omie. Null when the custom field takes no records.
Available options:
customers,
omie_categories,
omie_bank_accounts,
null
multiline
boolean
required
Whether the billing app shows the input of the custom field as a text area of several lines, in place of a text input of one line. Only a custom field of string with no options and no dataSource is multiline.
module
null | enum<string>
required
The module of Aira that owns the custom field, such as the integration omie, which reads its value by the fieldKey, or null when no module owns it. You cannot update or delete a custom field that a module owns.
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "entity": "contract", "fieldKey": "canalDeVenda", "dataType": "string", "label": "Canal de venda", "description": "Canal pelo qual o cliente compra.", "required": true, "defaultValue": "varejo", "options": [ { "label": "Varejo", "value": "varejo" } ], "dataSource": "customers", "multiline": true, "module": "omie"}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Aira","colors":{"primary":"#542691","light":"#B197FC","dark":"#3F1B6E"},"logo":{"light":"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/logo/light.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=d222c0199c2a89d6e27d97ba6ef28275","dark":"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/logo/dark.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=5ccb5cfecbe2f539cba0bffdece168a1"},"favicon":"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/favicon.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=824a706ab0a0bbf9242b5b7f152905b1","api":{"mdx":{"server":["https://api.useaira.com"]}},"navbar":{"links":[{"icon":"message-circle","href":"mailto:contato@useaira.com","label":"Suporte"}],"primary":{"type":"button","label":"Login","href":"https://app.useaira.com"}},"footer":{"socials":{"website":"https://www.useaira.com","linkedin":"https://linkedin.com/company/useaira"},"links":[{"header":"Legal","items":[{"label":"Termos de uso","href":"https://www.useaira.com/termos-de-uso"},{"label":"Política de privacidade","href":"https://www.useaira.com/politica-de-privacidade"},{"label":"Política de segurança","href":"https://www.useaira.com/politica-de-seguranca"}]}]},"search":{"prompt":"Buscar na documentação..."},"fonts":{"heading":{"family":"Geist","weight":500},"body":{"family":"Geist"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"App da Aira","icon":"app-window","href":"https://app.useaira.com"},{"anchor":"Arquivo OpenAPI","icon":"file-code","href":"https://docs.useaira.com/api-reference/openapi.yaml"},{"anchor":"Servidor MCP","icon":"bot","href":"/api-reference/servidor-mcp"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aira-e93056c6","hasAudioNarration":false,"actualSubdomain":"aira-e93056c6","customDomains":["docs.useaira.com"],"gitSource":{"type":"github","owner":"aira-dev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0a32412db098fe8410946f","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Referência da API","count":173},{"language":"default","tag":"Invoices","count":44},{"language":"default","tag":"Documentação","count":39},{"language":"default","tag":"Guias","count":16},{"language":"default","tag":"Integrações","count":11},{"language":"default","tag":"Contracts","count":11},{"language":"default","tag":"Customers","count":11},{"language":"default","tag":"Dunning","count":11},{"language":"default","tag":"Plan Instances","count":11},{"language":"default","tag":"Contratos","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#page-title,.aira-display{font-weight:500;letter-spacing:-0.04em}div.sidebar-group-header{color:rgb(var(--gray-900));font-size:0.875rem;font-weight:600;letter-spacing:-0.01em;text-transform:none}.dark div.sidebar-group-header{color:rgb(var(--gray-50))}#sidebar-content .sidebar-group-icon{width:1.125rem;height:1.125rem;min-width:1.125rem}#sidebar-content a{border-radius:0.75rem;letter-spacing:-0.01em;transition:background-color 0.15s ease, color 0.15s ease}#sidebar-content a:not([aria-current=\"page\"]){color:rgb(var(--gray-600))}#sidebar-content a:not([aria-current=\"page\"]):hover{background-color:rgb(var(--gray-950) / 0.05);color:rgb(var(--gray-900))}#sidebar-content a[aria-current=\"page\"]{background-color:rgb(var(--gray-950) / 0.06);color:rgb(var(--gray-900));font-weight:600;text-shadow:none}.dark #sidebar-content a:not([aria-current=\"page\"]){color:rgb(var(--gray-400))}.dark #sidebar-content a:not([aria-current=\"page\"]):hover{background-color:rgb(255 255 255 / 0.06);color:rgb(var(--gray-50))}.dark #sidebar-content a[aria-current=\"page\"]{background-color:rgb(255 255 255 / 0.08);color:rgb(var(--gray-50))}#sidebar-content a.nav-anchor{min-height:2.125rem;align-items:center;margin-bottom:0.125rem;padding:0.3125rem 0.75rem 0.3125rem 1rem!important;border-radius:0.625rem}#sidebar-content .method-nav-pill,#sidebar-content .method-nav-pill span{font-weight:700}#navbar .nav-tabs-item{font-weight:500;letter-spacing:-0.02em}#navbar{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}#content-area a.link{color:rgb(var(--primary));font-weight:500;border-bottom-color:rgb(var(--primary-light))}#content-area a.link:hover{border-bottom-color:rgb(var(--primary))}.dark #content-area a.link{color:rgb(var(--primary-light));border-bottom-color:rgb(var(--primary-light) / 0.4)}.dark #content-area a.link:hover{border-bottom-color:rgb(var(--primary-light))}#content-area table thead{border-bottom:none}#content-area table th{background-color:#f3f4f6;color:#4f545b;font-weight:500}#content-area table th:first-child,#content-area table td:first-child{padding-left:0.75rem}#content-area table th:first-child{border-radius:6px 0 0 6px}#content-area table th:last-child{border-radius:0 6px 6px 0}.dark #content-area table th{background-color:rgb(255 255 255 / 0.05);color:#d4d4d8}[data-component-part=\"step-number\"]>div{background-color:rgb(var(--primary) / 0.1);color:rgb(var(--primary))}.dark [data-component-part=\"step-number\"]>div{background-color:rgb(var(--primary-light) / 0.12);color:rgb(var(--primary-light))}"}]}
{"page":{"pagePath":"api-reference/custom-fields/update-custom-field","slug":"/api-reference/custom-fields/update-custom-field","pageMetadata":{"title":"Update custom field","description":"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the `options` or the `dataSource`, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is `multiline`, when it has neither.\n\nRequires the role `custom_fields:write`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/custom-fields/{id}","href":"/api-reference/custom-fields/update-custom-field","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the \", _jsx(_components.code, {\n children: \"options\"\n }), \" or the \", _jsx(_components.code, {\n children: \"dataSource\"\n }), \", the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is \", _jsx(_components.code, {\n children: \"multiline\"\n }), \", when it has neither.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Requires the role \", _jsx(_components.code, {\n children: \"custom_fields:write\"\n }), \".\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update custom field","description":"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the `options` or the `dataSource`, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is `multiline`, when it has neither.\n\nRequires the role `custom_fields:write`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/custom-fields/{id}","href":"/api-reference/custom-fields/update-custom-field","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Update custom field","tags":["Custom Fields"],"description":"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the `options` or the `dataSource`, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is `multiline`, when it has neither.\n\nRequires the role `custom_fields:write`.","requestBody":"4af7b93a-2366-41c0-a258-7c9fa103ce43","parameters":["d43655c7-6d6c-4633-b89e-f4eec306c1d1"],"x-public-api":true,"x-errors":[{"status":400,"code":"invalid_custom_fields","when":"the body has both `options` and a `dataSource`, gives a custom field of `boolean` options, a `dataSource` or a `defaultValue` other than `true` and `false`, makes `multiline` a custom field that is not a `string` with no `options` and no `dataSource`, names `omie_categories` or `omie_bank_accounts` as the `dataSource` while the integration of Omie is not enabled, or has an option with the value `__aira_empty__`, which Aira keeps for the filter of the records without a value"},{"status":400,"code":"custom_field_owned_by_module","when":"a module of Aira owns the custom field, such as an integration that reads its value by the `fieldKey`"},{"status":404,"code":"custom_field_not_found","when":"no custom field has the `id`"}],"x-required-roles":["custom_fields:write"],"responses":{"200":"f7ded480-98b9-4a40-b449-f7f2bc089277","400":"d72f5bac-a0c3-4f2f-8d5d-011af498550e","401":"08209a56-27b6-4bc4-b6aa-772fd30c19d9","403":"9cdc9f48-b930-44dd-959f-73e02828847a","404":"e2634f97-a8f0-4921-84b2-cd8a8fc62fd4"},"method":"patch","type":"path","servers":["b653a6b5-f92a-440b-8cf4-2cae73c2173a"],"security":["90c881f4-341b-4533-9971-4b590dc118b6"],"path":"/v1/custom-fields/{id}","baseUrlOptions":["https://api.useaira.com"],"title":"Update custom field","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d43655c7-6d6c-4633-b89e-f4eec306c1d1":{"schema":{"type":"string","format":"uuid","isRequired":true,"description":"The unique identifier of the custom field.","uniqueKey":"","typeLabel":"string\u003cuuid>"},"in":"path","name":"id","required":true,"description":"The unique identifier of the custom field."}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"The name of the custom field that the billing app shows.","example":"Canal de venda","uniqueKey":"label","typeLabel":"string"},"description":{"oneOf":[{"type":"null","description":"The help text that the billing app shows with the input of the custom field, or null for none.","example":"Canal pelo qual o cliente compra.","uniqueKey":"description.oneOf.0","typeLabel":"null"},{"type":"string","description":"The help text that the billing app shows with the input of the custom field, or null for none.","example":"Canal pelo qual o cliente compra.","uniqueKey":"description.oneOf.1","typeLabel":"string"}],"uniqueKey":"description","typeLabel":"null | string"},"required":{"type":"boolean","description":"Whether each record of the `entity` must hold a value of the custom field.","uniqueKey":"required","typeLabel":"boolean"},"defaultValue":{"oneOf":[{"type":"null","description":"The value that the billing app fills in on a new record, or null for none.","example":"varejo","uniqueKey":"defaultValue.oneOf.0","typeLabel":"null"},{"type":"string","description":"The value that the billing app fills in on a new record, or null for none.","example":"varejo","uniqueKey":"defaultValue.oneOf.1","typeLabel":"string"}],"uniqueKey":"defaultValue","typeLabel":"null | string"},"options":{"oneOf":[{"type":"null","items":{"type":"object","description":"A value that a record can hold in the custom field.","properties":{"label":{"type":"string","minLength":1,"description":"The text that the billing app shows for the option.","examples":["Varejo"]},"value":{"type":"string","minLength":1,"description":"The value that a record holds in its `customFields` when a user picks the option.","examples":["varejo"]}},"required":["label","value"],"additionalProperties":false},"description":"The values that a record can hold in the custom field, in the order that the billing app shows them, or null when the custom field takes any value. When the body names `options` or `dataSource`, the two replace the values that the custom field takes, so the one that the body leaves out becomes null.","minItems":1,"uniqueKey":"options.oneOf.0","typeLabel":"null"},{"type":"array","items":{"type":"object","description":"A value that a record can hold in the custom field.","properties":{"label":{"type":"string","minLength":1,"description":"The text that the billing app shows for the option.","examples":["Varejo"],"isRequired":true,"uniqueKey":"options.oneOf.1.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","minLength":1,"description":"The value that a record holds in its `customFields` when a user picks the option.","examples":["varejo"],"isRequired":true,"uniqueKey":"options.oneOf.1.items.[INDEX].value","typeLabel":"string"}},"required":["label","value"],"additionalProperties":false,"uniqueKey":"options.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The values that a record can hold in the custom field, in the order that the billing app shows them, or null when the custom field takes any value. When the body names `options` or `dataSource`, the two replace the values that the custom field takes, so the one that the body leaves out becomes null.","minItems":1,"uniqueKey":"options.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"options","typeLabel":"null | object[]"},"dataSource":{"oneOf":[{"type":"null","enum":["customers","omie_categories","omie_bank_accounts",null],"description":"The records whose ids a record holds in the custom field, in place of `options`: `customers` for the customers, and `omie_categories` or `omie_bank_accounts` for the categories or the bank accounts of Omie, or null for none. When the body names `options` or `dataSource`, the two replace the values that the custom field takes, so the one that the body leaves out becomes null.","uniqueKey":"dataSource.oneOf.0","typeLabel":"null"},{"type":"string","enum":["customers","omie_categories","omie_bank_accounts",null],"description":"The records whose ids a record holds in the custom field, in place of `options`: `customers` for the customers, and `omie_categories` or `omie_bank_accounts` for the categories or the bank accounts of Omie, or null for none. When the body names `options` or `dataSource`, the two replace the values that the custom field takes, so the one that the body leaves out becomes null.","uniqueKey":"dataSource.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"dataSource","typeLabel":"null | enum\u003cstring>"},"multiline":{"type":"boolean","description":"Whether the billing app shows the input of the custom field as a text area of several lines, in place of a text input of one line. Only a custom field of `string` with no `options` and no `dataSource` is multiline.","uniqueKey":"multiline","typeLabel":"boolean"}},"required":[],"additionalProperties":false,"minProperties":1,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"label":"Canal de venda","description":"Canal pelo qual o cliente compra.","required":true,"defaultValue":"varejo","options":[{"label":"Varejo","value":"varejo"}],"multiline":true}}},"exampleType":"generated"}},"description":"The attributes of the custom field to change, at least one. The attributes that the body leaves out keep their values.","exampleType":"generated"},"responses":{"f7ded480-98b9-4a40-b449-f7f2bc089277":{"description":"A custom field: a field that you add to one kind of record, such as customers or contracts, whose value users fill in on each record. Each record of that kind holds the value in its `customFields`, under the `fieldKey`.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the custom field.","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"entity":{"type":"string","enum":["contract","product","item","customer","importable_template","legal_entity","revenue_traceability","revenue_attribution","invoice_discount","invoice","plan_instance_version"],"description":"The kind of record that the custom field belongs to, such as `customer` or `contract`.","isRequired":true,"uniqueKey":"entity","typeLabel":"enum\u003cstring>"},"fieldKey":{"type":"string","description":"The key under which each record of the `entity` holds the value of the custom field in its `customFields`. No other custom field of the same `entity` has it.","example":"canalDeVenda","isRequired":true,"uniqueKey":"fieldKey","typeLabel":"string"},"dataType":{"type":"string","enum":["string","string_array","boolean"],"description":"The type of the value of the custom field: `string` holds one text, `string_array` holds a list of texts, and `boolean` holds the text `true` or `false`.","isRequired":true,"uniqueKey":"dataType","typeLabel":"enum\u003cstring>"},"label":{"type":"string","minLength":1,"description":"The name of the custom field that the billing app shows.","example":"Canal de venda","isRequired":true,"uniqueKey":"label","typeLabel":"string"},"description":{"oneOf":[{"type":"null","description":"The help text that the billing app shows with the input of the custom field, or null for none.","example":"Canal pelo qual o cliente compra.","isRequired":true,"uniqueKey":"description.oneOf.0","typeLabel":"null"},{"type":"string","description":"The help text that the billing app shows with the input of the custom field, or null for none.","example":"Canal pelo qual o cliente compra.","isRequired":true,"uniqueKey":"description.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"description","typeLabel":"null | string"},"required":{"type":"boolean","description":"Whether each record of the `entity` must hold a value of the custom field.","isRequired":true,"uniqueKey":"required","typeLabel":"boolean"},"defaultValue":{"oneOf":[{"type":"null","description":"The value that the billing app fills in on a new record, or null for none.","example":"varejo","isRequired":true,"uniqueKey":"defaultValue.oneOf.0","typeLabel":"null"},{"type":"string","description":"The value that the billing app fills in on a new record, or null for none.","example":"varejo","isRequired":true,"uniqueKey":"defaultValue.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"defaultValue","typeLabel":"null | string"},"options":{"oneOf":[{"type":"null","items":{"type":"object","description":"A value that a record can hold in the custom field.","properties":{"label":{"type":"string","minLength":1,"description":"The text that the billing app shows for the option.","examples":["Varejo"]},"value":{"type":"string","minLength":1,"description":"The value that a record holds in its `customFields` when a user picks the option.","examples":["varejo"]}},"required":["label","value"],"additionalProperties":false},"description":"The values that a record can hold in the custom field, in the order that the billing app shows them, or null when the custom field takes any value.","isRequired":true,"uniqueKey":"options.oneOf.0","typeLabel":"null"},{"type":"array","items":{"type":"object","description":"A value that a record can hold in the custom field.","properties":{"label":{"type":"string","minLength":1,"description":"The text that the billing app shows for the option.","examples":["Varejo"],"isRequired":true,"uniqueKey":"options.oneOf.1.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","minLength":1,"description":"The value that a record holds in its `customFields` when a user picks the option.","examples":["varejo"],"isRequired":true,"uniqueKey":"options.oneOf.1.items.[INDEX].value","typeLabel":"string"}},"required":["label","value"],"additionalProperties":false,"uniqueKey":"options.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The values that a record can hold in the custom field, in the order that the billing app shows them, or null when the custom field takes any value.","isRequired":true,"uniqueKey":"options.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"options","typeLabel":"null | object[]"},"dataSource":{"oneOf":[{"type":"null","enum":["customers","omie_categories","omie_bank_accounts",null],"description":"The records whose ids a record holds in the custom field, in place of `options`: `customers` for the customers, and `omie_categories` or `omie_bank_accounts` for the categories or the bank accounts of Omie. Null when the custom field takes no records.","isRequired":true,"uniqueKey":"dataSource.oneOf.0","typeLabel":"null"},{"type":"string","enum":["customers","omie_categories","omie_bank_accounts",null],"description":"The records whose ids a record holds in the custom field, in place of `options`: `customers` for the customers, and `omie_categories` or `omie_bank_accounts` for the categories or the bank accounts of Omie. Null when the custom field takes no records.","isRequired":true,"uniqueKey":"dataSource.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"dataSource","typeLabel":"null | enum\u003cstring>"},"multiline":{"type":"boolean","description":"Whether the billing app shows the input of the custom field as a text area of several lines, in place of a text input of one line. Only a custom field of `string` with no `options` and no `dataSource` is multiline.","isRequired":true,"uniqueKey":"multiline","typeLabel":"boolean"},"module":{"oneOf":[{"type":"null","enum":["omie","senior","celcash","asaas","enotas","hubspot","contaazul",null],"description":"The module of Aira that owns the custom field, such as the integration `omie`, which reads its value by the `fieldKey`, or null when no module owns it. You cannot update or delete a custom field that a module owns.","isRequired":true,"uniqueKey":"module.oneOf.0","typeLabel":"null"},{"type":"string","enum":["omie","senior","celcash","asaas","enotas","hubspot","contaazul",null],"description":"The module of Aira that owns the custom field, such as the integration `omie`, which reads its value by the `fieldKey`, or null when no module owns it. You cannot update or delete a custom field that a module owns.","isRequired":true,"uniqueKey":"module.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"module","typeLabel":"null | enum\u003cstring>"}},"required":["id","entity","fieldKey","dataType","label","description","required","defaultValue","options","dataSource","multiline","module"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","entity":"contract","fieldKey":"canalDeVenda","dataType":"string","label":"Canal de venda","description":"Canal pelo qual o cliente compra.","required":true,"defaultValue":"varejo","options":[{"label":"Varejo","value":"varejo"}],"dataSource":"customers","multiline":true,"module":"omie"}}},"exampleType":"generated"}},"exampleType":"generated"},"d72f5bac-a0c3-4f2f-8d5d-011af498550e":{"description":"The request cannot succeed as sent.\n\n- `json_schema_validation_error`: a path parameter or the body breaks the schema of the endpoint.\n- `invalid_custom_fields`: the body has both `options` and a `dataSource`, gives a custom field of `boolean` options, a `dataSource` or a `defaultValue` other than `true` and `false`, makes `multiline` a custom field that is not a `string` with no `options` and no `dataSource`, names `omie_categories` or `omie_bank_accounts` as the `dataSource` while the integration of Omie is not enabled, or has an option with the value `__aira_empty__`, which Aira keeps for the filter of the records without a value.\n- `custom_field_owned_by_module`: a module of Aira owns the custom field, such as an integration that reads its value by the `fieldKey`.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["json_schema_validation_error","invalid_custom_fields","custom_field_owned_by_module"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"json_schema_validation_error":{"title":"json_schema_validation_error","value":{"message":"'id' must match format \"uuid\"","code":"json_schema_validation_error"}},"invalid_custom_fields":{"title":"invalid_custom_fields","value":{"message":"Unknown custom field(s) for {entity}: {value}","code":"invalid_custom_fields"}},"custom_field_owned_by_module":{"title":"custom_field_owned_by_module","value":{"message":"custom field \"{fieldKey}\" belongs to the module {module}, which reads it by its key","code":"custom_field_owned_by_module"}}},"exampleType":"examples"}},"exampleType":"examples"},"08209a56-27b6-4bc4-b6aa-772fd30c19d9":{"description":"The request carries no API key.\n\n- `no_authorization`: the request carries no API key in the `X-API-KEY` header.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["no_authorization"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"no_authorization":{"title":"no_authorization","value":{"message":"No authorization provided","code":"no_authorization"}}},"exampleType":"examples"}},"exampleType":"examples"},"9cdc9f48-b930-44dd-959f-73e02828847a":{"description":"The API key cannot call the endpoint.\n\n- `bad_auth`: the API key does not hold the role that the endpoint requires.\n- `invalid_api_key`: the API key does not exist.\n- `deactivated_api_key`: the API key is deactivated.\n- `revoked_api_key`: the API key is revoked.\n- `expired_api_key`: the API key is past its expiry date.\n- `ip_not_allowed`: the IP of the request is not among the IPs that your API keys accept.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["bad_auth","invalid_api_key","deactivated_api_key","revoked_api_key","expired_api_key","ip_not_allowed"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"bad_auth":{"title":"bad_auth","value":{"message":"role custom_fields:write can not be satisfied","code":"bad_auth"}},"invalid_api_key":{"title":"invalid_api_key","value":{"message":"Invalid API key","code":"invalid_api_key"}},"deactivated_api_key":{"title":"deactivated_api_key","value":{"message":"Deactivated API key","code":"deactivated_api_key"}},"revoked_api_key":{"title":"revoked_api_key","value":{"message":"Revoked API key","code":"revoked_api_key"}},"expired_api_key":{"title":"expired_api_key","value":{"message":"Expired API key","code":"expired_api_key"}},"ip_not_allowed":{"title":"ip_not_allowed","value":{"message":"IP not allowed","code":"ip_not_allowed"}}},"exampleType":"examples"}},"exampleType":"examples"},"e2634f97-a8f0-4921-84b2-cd8a8fc62fd4":{"description":"A record that the request names does not exist.\n\n- `custom_field_not_found`: no custom field has the `id`.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed. It can change, so a system compares the code instead.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error, which a system compares to decide what to do. It never changes.","enum":["custom_field_not_found"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"details":{"oneOf":[{"type":"object","description":"The data of the error, when it has any, such as the fields that failed the validation.","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"description":"The data of the error, when it has any, such as the fields that failed the validation.","uniqueKey":"details.oneOf.1","typeLabel":"any[]"}],"uniqueKey":"details","typeLabel":"object | any[]"},"causations":{"type":"array","description":"The errors that caused this one, when several did, each with its own message, code and details.","items":{"type":"object","properties":{"message":{"type":"string","description":"A sentence for a person that says what failed.","isRequired":true,"uniqueKey":"causations.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"The identifier of the error.","isRequired":true,"uniqueKey":"causations.items.[INDEX].code","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"The data of the error, when it has any.","uniqueKey":"causations.items.[INDEX].details","typeLabel":"object"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"causations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"causations","typeLabel":"object[]"}},"required":["message","code"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"custom_field_not_found":{"title":"custom_field_not_found","value":{"message":"custom field \"{id}\" not found","code":"custom_field_not_found"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"90c881f4-341b-4533-9971-4b590dc118b6":{"ApiKey":{"type":"apiKey","description":"API Key Authentication.","name":"X-API-KEY","in":"header","scopes":[],"schemeName":"ApiKey"}}},"servers":{"b653a6b5-f92a-440b-8cf4-2cae73c2173a":{"url":"https://api.useaira.com","description":"API base URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"API Key Authentication.","name":"X-API-KEY","in":"header","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"X-API-KEY","type":"string","description":"API Key Authentication.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"X-API-KEY"}],"title":"ApiKey"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"aira-e93056c6","siteName":"Aira","title":"Update custom field - Aira","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-28T01:45:52.467Z","originalFileLocation":"api-reference/custom-fields/update-custom-field.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the options or the dataSource, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is multiline, when it has neither. Requires the role custom_fields:write.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aira\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_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/aira-e93056c6/rFHNG1I4T4E6tM9X/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update custom field - Aira\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the options or the dataSource, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is multiline, when it has neither. Requires the role custom_fields:write.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aira\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aira-e93056c6.mintlify.site/_mintlify/api/og/v2?division=Custom+Fields\u0026amp;title=Update+custom+field\u0026amp;description=Updates+the+attributes+that+the+body+names+of+a+custom+field+that+no+module+of+Aira+owns%2C+and+keeps+the+others.+When+the+body+names+the+%60options%60+or+the+%60dataSo\u0026amp;theme=8169730228d89f2c41115879\u0026amp;signature=be2d6a1f70cd0d18e41849c7067aa0135704fc66a26cae9bf9f8c612a23b9ec8\">\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 custom field - Aira\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the options or the dataSource, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is multiline, when it has neither. Requires the role custom_fields:write.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aira-e93056c6.mintlify.site/_mintlify/api/og/v2?division=Custom+Fields\u0026amp;title=Update+custom+field\u0026amp;description=Updates+the+attributes+that+the+body+names+of+a+custom+field+that+no+module+of+Aira+owns%2C+and+keeps+the+others.+When+the+body+names+the+%60options%60+or+the+%60dataSo\u0026amp;theme=8169730228d89f2c41115879\u0026amp;signature=be2d6a1f70cd0d18e41849c7067aa0135704fc66a26cae9bf9f8c612a23b9ec8\">\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/aira-e93056c6/rFHNG1I4T4E6tM9X/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aira\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#542691\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/custom-fields/update-custom-field.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.useaira.com/#organization\",\"name\":\"Aira\",\"url\":\"https://docs.useaira.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aira-e93056c6/NIoErVFaJlphCKFi/logo/light.svg?fit=max\u0026auto=format\u0026n=NIoErVFaJlphCKFi\u0026q=85\u0026s=d222c0199c2a89d6e27d97ba6ef28275\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.useaira.com#website\",\"name\":\"Aira\",\"url\":\"https://docs.useaira.com\",\"publisher\":{\"@id\":\"https://docs.useaira.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field#webpage\",\"url\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field\",\"name\":\"Update custom field\",\"description\":\"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the options or the dataSource, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is multiline, when it has neither. Requires the role custom_fields:write.\",\"dateModified\":\"2026-11-28T01:45:52.467Z\",\"isPartOf\":{\"@id\":\"https://docs.useaira.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Custom Fields\",\"item\":\"https://docs.useaira.com/api-reference/custom-fields/list-custom-fields\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update custom field\",\"item\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field#apireference\",\"headline\":\"Update custom field\",\"name\":\"Update custom field\",\"description\":\"Updates the attributes that the body names of a custom field that no module of Aira owns, and keeps the others. When the body names the options or the dataSource, the two replace the values that a record can hold, and the billing app shows the custom field with a select while it has either, and with a text input, or a text area while it is multiline, when it has neither. Requires the role custom_fields:write.\",\"url\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field\",\"mainEntityOfPage\":{\"@id\":\"https://docs.useaira.com/api-reference/custom-fields/update-custom-field#webpage\"},\"dateModified\":\"2026-11-28T01:45:52.467Z\",\"publisher\":{\"@id\":\"https://docs.useaira.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.useaira.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aira\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aira\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/custom-fields/update-custom-field.md","siteName":"Aira","nav":{"global":{"anchors":[{"anchor":"App da Aira","icon":"app-window","href":"https://app.useaira.com"},{"anchor":"Arquivo OpenAPI","icon":"file-code","href":"https://docs.useaira.com/api-reference/openapi.yaml"},{"anchor":"Servidor MCP","icon":"bot","href":"/api-reference/servidor-mcp"}]},"tabs":[{"tab":"Documentação","icon":"book-open","pages":[{"title":"Documentação","href":""}]},{"tab":"Guias","icon":"map","pages":[{"title":"Guias","href":"/clientes/criar-clientes"}]},{"tab":"Integrações","icon":"plug","pages":[{"title":"Integrações","href":"/integracoes/visao-geral"}]},{"tab":"Referência da API","icon":"code","groups":[{"group":"Referência da API","pages":[{"title":"Referência da API","sidebarTitle":"Visão geral","icon":"square-terminal","href":"/api-reference/introduction"},{"title":"Autenticação","sidebarTitle":"Autenticação","icon":"key","href":"/api-reference/autenticacao"},{"title":"Paginação e limites","sidebarTitle":"Paginação e limites","icon":"gauge","href":"/api-reference/paginacao-e-limites"},{"title":"Webhooks","sidebarTitle":"Webhooks","icon":"webhook","href":"/api-reference/webhooks"},{"title":"Respostas de erro","sidebarTitle":"Respostas de erro","icon":"circle-x","href":"/api-reference/error-responses"},{"title":"Servidor MCP","sidebarTitle":"Servidor MCP","icon":"bot","href":"/api-reference/servidor-mcp"}]},{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/","href":"/api-reference/customers/list-customers"},{"title":"Create customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/customers/","href":"/api-reference/customers/create-customer"},{"title":"Fetch customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/{id}","href":"/api-reference/customers/fetch-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/customers/{id}","href":"/api-reference/customers/update-customer"},{"title":"Delete customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/customers/{id}","href":"/api-reference/customers/delete-customer"},{"title":"Fetch customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/by-external-id/{externalId}","href":"/api-reference/customers/fetch-customer-by-external-id"},{"title":"Update customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/customers/by-external-id/{externalId}","href":"/api-reference/customers/update-customer-by-external-id"},{"title":"Delete customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/customers/by-external-id/{externalId}","href":"/api-reference/customers/delete-customer-by-external-id"},{"title":"Archive customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/customers/{id}/archive","href":"/api-reference/customers/archive-customer"},{"title":"Unarchive customer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/customers/{id}/unarchive","href":"/api-reference/customers/unarchive-customer"},{"title":"List customer subsidiaries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/customers/{id}/subsidiaries","href":"/api-reference/customers/list-customer-subsidiaries"}]},{"group":"Resources","pages":[{"title":"List resources","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/resources/","href":"/api-reference/resources/list-resources"},{"title":"Create resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/resources/","href":"/api-reference/resources/create-resource"},{"title":"Fetch resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/resources/{id}","href":"/api-reference/resources/fetch-resource"},{"title":"Update resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/resources/{id}","href":"/api-reference/resources/update-resource"},{"title":"Delete resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/resources/{id}","href":"/api-reference/resources/delete-resource"},{"title":"Archive resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/resources/{id}/archive","href":"/api-reference/resources/archive-resource"},{"title":"Unarchive resource","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/resources/{id}/unarchive","href":"/api-reference/resources/unarchive-resource"}]},{"group":"Revenue Traceability","pages":[{"title":"List revenue items","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/revenue-items/","href":"/api-reference/revenue-traceability/list-revenue-items"},{"title":"List revenue traceabilities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/revenue-traceability/","href":"/api-reference/revenue-traceability/list-revenue-traceabilities"},{"title":"List the products that a contract bills","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/revenue-traceability/contract-products","href":"/api-reference/revenue-traceability/list-the-products-that-a-contract-bills"},{"title":"Replace revenue traceabilities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/revenue-traceability/{contractId}","href":"/api-reference/revenue-traceability/replace-revenue-traceabilities"}]},{"group":"Invoices","pages":[{"title":"Fetch invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}","href":"/api-reference/invoices/fetch-invoice"},{"title":"Fetch invoice by provider ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/by-provider-id/{providerId}","href":"/api-reference/invoices/fetch-invoice-by-provider-id"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/","href":"/api-reference/invoices/list-invoices"},{"title":"Create invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/","href":"/api-reference/invoices/create-invoice"},{"title":"Download invoice PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/pdf","href":"/api-reference/invoices/download-invoice-pdf"},{"title":"List invoice discounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/discounts","href":"/api-reference/invoices/list-invoice-discounts"},{"title":"Create invoice discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/discounts","href":"/api-reference/invoices/create-invoice-discount"},{"title":"Download the fiscal document of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/fiscal-invoice/download","href":"/api-reference/invoices/download-the-fiscal-document-of-an-invoice"},{"title":"List the additional charges of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/additional-charges","href":"/api-reference/invoices/list-the-additional-charges-of-an-invoice"},{"title":"Add an additional charge to an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/additional-charges","href":"/api-reference/invoices/add-an-additional-charge-to-an-invoice"},{"title":"List the attachments of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/attachments","href":"/api-reference/invoices/list-the-attachments-of-an-invoice"},{"title":"Upload attachments to an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/attachments","href":"/api-reference/invoices/upload-attachments-to-an-invoice"},{"title":"Download an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/attachments/{attachmentId}/download","href":"/api-reference/invoices/download-an-attachment-of-an-invoice"},{"title":"Download an invoice artifact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/artifacts/{invoiceArtifactId}","href":"/api-reference/invoices/download-an-invoice-artifact"},{"title":"List invoice syncs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/sync","href":"/api-reference/invoices/list-invoice-syncs"},{"title":"Fetch invoice status summary","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/status-summary","href":"/api-reference/invoices/fetch-invoice-status-summary"},{"title":"Fetch a download link of the invoice PDF","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/pdf/link","href":"/api-reference/invoices/fetch-a-download-link-of-the-invoice-pdf"},{"title":"Fetch a download link of an invoice artifact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/artifacts/{invoiceArtifactId}/link","href":"/api-reference/invoices/fetch-a-download-link-of-an-invoice-artifact"},{"title":"Fetch a download link of an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{invoiceId}/attachments/{attachmentId}/download/link","href":"/api-reference/invoices/fetch-a-download-link-of-an-attachment-of-an-invoice"},{"title":"Fetch a download link of the fiscal document of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/{id}/fiscal-invoice/download/link","href":"/api-reference/invoices/fetch-a-download-link-of-the-fiscal-document-of-an-invoice"},{"title":"List invoice artifact types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/invoices/artifact-types","href":"/api-reference/invoices/list-invoice-artifact-types"},{"title":"Update invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}","href":"/api-reference/invoices/update-invoice"},{"title":"Cancel invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/cancel","href":"/api-reference/invoices/cancel-invoice"},{"title":"Mark invoice as in review","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/in-review","href":"/api-reference/invoices/mark-invoice-as-in-review"},{"title":"Issue invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/issue","href":"/api-reference/invoices/issue-invoice"},{"title":"Mark invoice as paid","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/pay","href":"/api-reference/invoices/mark-invoice-as-paid"},{"title":"Recalculate invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/recalculate","href":"/api-reference/invoices/recalculate-invoices"},{"title":"Create invoice line item group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/line-item-groups","href":"/api-reference/invoices/create-invoice-line-item-group"},{"title":"Update invoice line item group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/line-item-groups/{lineItemGroupId}","href":"/api-reference/invoices/update-invoice-line-item-group"},{"title":"Delete invoice line item group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/line-item-groups/{lineItemGroupId}","href":"/api-reference/invoices/delete-invoice-line-item-group"},{"title":"Create invoice line item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{invoiceId}/line-items","href":"/api-reference/invoices/create-invoice-line-item"},{"title":"Update invoice line item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/line-items/{lineItemId}","href":"/api-reference/invoices/update-invoice-line-item"},{"title":"Delete invoice line item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/line-items/{lineItemId}","href":"/api-reference/invoices/delete-invoice-line-item"},{"title":"Update invoice discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/discounts/{discountId}","href":"/api-reference/invoices/update-invoice-discount"},{"title":"Delete invoice discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/discounts/{discountId}","href":"/api-reference/invoices/delete-invoice-discount"},{"title":"Undo a manual mark as paid","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{id}/unpay","href":"/api-reference/invoices/undo-a-manual-mark-as-paid"},{"title":"Reopen an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{id}/reopen","href":"/api-reference/invoices/reopen-an-invoice"},{"title":"Update the custom fields of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{id}/custom-fields","href":"/api-reference/invoices/update-the-custom-fields-of-an-invoice"},{"title":"Send an invoice by e-mail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/{id}/send-email","href":"/api-reference/invoices/send-an-invoice-by-e-mail"},{"title":"Replace an additional charge of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/invoices/{invoiceId}/additional-charges/{lineItemId}","href":"/api-reference/invoices/replace-an-additional-charge-of-an-invoice"},{"title":"Delete an additional charge of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/additional-charges/{lineItemId}","href":"/api-reference/invoices/delete-an-additional-charge-of-an-invoice"},{"title":"Delete an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/invoices/{invoiceId}/attachments/{attachmentId}","href":"/api-reference/invoices/delete-an-attachment-of-an-invoice"},{"title":"Update an attachment of an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/invoices/{invoiceId}/attachments/{attachmentId}","href":"/api-reference/invoices/update-an-attachment-of-an-invoice"},{"title":"Retry failed invoice syncs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/invoices/sync/retry","href":"/api-reference/invoices/retry-failed-invoice-syncs"}]},{"group":"Events","pages":[{"title":"List events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/events/","href":"/api-reference/events/list-events"},{"title":"Ingest events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/events/ingest","href":"/api-reference/events/ingest-events"},{"title":"Archive events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/events/archive","href":"/api-reference/events/archive-events"},{"title":"Overwrite event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/events/{idempotencyKey}","href":"/api-reference/events/overwrite-event"}]},{"group":"Licenses","pages":[{"title":"Report license balances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/licenses/report-balances","href":"/api-reference/licenses/report-license-balances"},{"title":"List licenses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/licenses/","href":"/api-reference/licenses/list-licenses"},{"title":"Create license","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/licenses/","href":"/api-reference/licenses/create-license"},{"title":"Fetch license","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/licenses/{id}","href":"/api-reference/licenses/fetch-license"},{"title":"Update license","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/licenses/{id}","href":"/api-reference/licenses/update-license"},{"title":"Delete license","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/licenses/{id}","href":"/api-reference/licenses/delete-license"},{"title":"Archive license","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/licenses/{id}/archive","href":"/api-reference/licenses/archive-license"},{"title":"Unarchive license","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/licenses/{id}/unarchive","href":"/api-reference/licenses/unarchive-license"},{"title":"List license balances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/licenses/{id}/balances","href":"/api-reference/licenses/list-license-balances"},{"title":"List license balance history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/licenses/{id}/balances/{customerExternalId}/history","href":"/api-reference/licenses/list-license-balance-history"}]},{"group":"Contracts","pages":[{"title":"List contracts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/contracts/","href":"/api-reference/contracts/list-contracts"},{"title":"Create contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/","href":"/api-reference/contracts/create-contract"},{"title":"Update draft contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/contracts/{id}/draft","href":"/api-reference/contracts/update-draft-contract"},{"title":"Update active contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/contracts/{id}/active","href":"/api-reference/contracts/update-active-contract"},{"title":"Activate contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/activate","href":"/api-reference/contracts/activate-contract"},{"title":"Duplicate contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/duplicate","href":"/api-reference/contracts/duplicate-contract"},{"title":"List contract recurring discounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/contracts/{id}/recurring-discounts","href":"/api-reference/contracts/list-contract-recurring-discounts"},{"title":"Create contract recurring discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/recurring-discounts","href":"/api-reference/contracts/create-contract-recurring-discount"},{"title":"Deactivate contract recurring discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/contracts/{id}/recurring-discounts/{contractRecurringDiscountId}/deactivate","href":"/api-reference/contracts/deactivate-contract-recurring-discount"},{"title":"Update contract recurring discount","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/contracts/{id}/recurring-discounts/{contractRecurringDiscountId}","href":"/api-reference/contracts/update-contract-recurring-discount"},{"title":"Fetch contract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/contracts/{id}","href":"/api-reference/contracts/fetch-contract"}]},{"group":"Plan Instances","pages":[{"title":"List plan instances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instances/","href":"/api-reference/plan-instances/list-plan-instances"},{"title":"Create plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/","href":"/api-reference/plan-instances/create-plan-instance"},{"title":"Fetch plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instances/{id}","href":"/api-reference/plan-instances/fetch-plan-instance"},{"title":"Update plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/plan-instances/{id}","href":"/api-reference/plan-instances/update-plan-instance"},{"title":"Delete plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/plan-instances/{id}","href":"/api-reference/plan-instances/delete-plan-instance"},{"title":"Cancel plan instance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/{id}/cancel","href":"/api-reference/plan-instances/cancel-plan-instance"},{"title":"Apply rate adjustment to plan instances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/rate-adjust","href":"/api-reference/plan-instances/apply-rate-adjustment-to-plan-instances"},{"title":"Update plan instances to latest plan version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instances/update-to-latest-plan-version","href":"/api-reference/plan-instances/update-plan-instances-to-latest-plan-version"},{"title":"List plan instance versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instance-versions/","href":"/api-reference/plan-instances/list-plan-instance-versions"},{"title":"Fetch plan instance version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plan-instance-versions/{id}","href":"/api-reference/plan-instances/fetch-plan-instance-version"},{"title":"Restore plan instance version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plan-instance-versions/{id}/rollback","href":"/api-reference/plan-instances/restore-plan-instance-version"}]},{"group":"Plans","pages":[{"title":"List plans","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plans/","href":"/api-reference/plans/list-plans"},{"title":"Create plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plans/","href":"/api-reference/plans/create-plan"},{"title":"Fetch plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plans/{id}","href":"/api-reference/plans/fetch-plan"},{"title":"Update plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/plans/{id}","href":"/api-reference/plans/update-plan"},{"title":"Delete plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/plans/{id}","href":"/api-reference/plans/delete-plan"},{"title":"Restore plan version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/plans/version/{id}/rollback","href":"/api-reference/plans/restore-plan-version"},{"title":"List plan versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plans/{id}/versions","href":"/api-reference/plans/list-plan-versions"},{"title":"Fetch plan version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/plans/version/{id}","href":"/api-reference/plans/fetch-plan-version"}]},{"group":"Legal Entities","pages":[{"title":"List legal entities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/legal-entities/","href":"/api-reference/legal-entities/list-legal-entities"}]},{"group":"Watchtower","pages":[{"title":"Upload a contract PDF for ingestion","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/watchtower/contract-ingestion","href":"/api-reference/watchtower/upload-a-contract-pdf-for-ingestion"}]},{"group":"Payment Accounts","pages":[{"title":"Create payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-accounts/","href":"/api-reference/payment-accounts/create-payment-account"},{"title":"Update payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/payment-accounts/{id}","href":"/api-reference/payment-accounts/update-payment-account"},{"title":"Archive payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-accounts/{id}/archive","href":"/api-reference/payment-accounts/archive-payment-account"},{"title":"Unarchive payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-accounts/{id}/unarchive","href":"/api-reference/payment-accounts/unarchive-payment-account"},{"title":"Set default payment account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-accounts/{id}/set-default","href":"/api-reference/payment-accounts/set-default-payment-account"},{"title":"List customer payment accounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payment-accounts/by-customer","href":"/api-reference/payment-accounts/list-customer-payment-accounts"}]},{"group":"Products","pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/products/","href":"/api-reference/products/list-products"},{"title":"Create product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/products/","href":"/api-reference/products/create-product"},{"title":"Update product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/products/{id}","href":"/api-reference/products/update-product"},{"title":"Delete product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/products/{id}","href":"/api-reference/products/delete-product"},{"title":"Archive product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/products/{id}/archive","href":"/api-reference/products/archive-product"},{"title":"Unarchive product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/products/{id}/unarchive","href":"/api-reference/products/unarchive-product"}]},{"group":"Items","pages":[{"title":"List items","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/items/","href":"/api-reference/items/list-items"},{"title":"Create item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/items/","href":"/api-reference/items/create-item"},{"title":"Update item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/items/{id}","href":"/api-reference/items/update-item"},{"title":"Delete item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/items/{id}","href":"/api-reference/items/delete-item"},{"title":"Archive item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/items/{id}/archive","href":"/api-reference/items/archive-item"},{"title":"Unarchive item","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/items/{id}/unarchive","href":"/api-reference/items/unarchive-item"}]},{"group":"Emails","pages":[{"title":"List emails","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/","href":"/api-reference/emails/list-emails"},{"title":"Fetch email","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/{id}","href":"/api-reference/emails/fetch-email"},{"title":"Download email attachment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/{id}/attachments/{attachmentIndex}/download","href":"/api-reference/emails/download-email-attachment"},{"title":"Fetch a download link of an email attachment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/emails/{id}/attachments/{attachmentIndex}/download/link","href":"/api-reference/emails/fetch-a-download-link-of-an-email-attachment"}]},{"group":"Webhooks","pages":[{"title":"List webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/webhook-settings/","href":"/api-reference/webhooks/list-webhook-settings"},{"title":"Create webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/webhook-settings/","href":"/api-reference/webhooks/create-webhook-settings"},{"title":"Fetch webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/webhook-settings/{id}","href":"/api-reference/webhooks/fetch-webhook-settings"},{"title":"Delete webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/webhook-settings/{id}","href":"/api-reference/webhooks/delete-webhook-settings"},{"title":"Update webhook settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/webhook-settings/{id}","href":"/api-reference/webhooks/update-webhook-settings"}]},{"group":"Api Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/api-keys/","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/api-keys/","href":"/api-reference/api-keys/create-api-key"},{"title":"Update API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/api-keys/{id}","href":"/api-reference/api-keys/update-api-key"}]},{"group":"Payments","pages":[{"title":"Fetch payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{id}","href":"/api-reference/payments/fetch-payment"},{"title":"Download the boleto or Pix file of a payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{id}/files/download","href":"/api-reference/payments/download-the-boleto-or-pix-file-of-a-payment"},{"title":"Fetch a download link of the boleto or Pix of a payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{id}/files/download/link","href":"/api-reference/payments/fetch-a-download-link-of-the-boleto-or-pix-of-a-payment"}]},{"group":"Dunning","pages":[{"title":"List dunning schedules","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/dunning-schedules/","href":"/api-reference/dunning/list-dunning-schedules"},{"title":"Create dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/","href":"/api-reference/dunning/create-dunning-schedule"},{"title":"Fetch dunning settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/dunning-schedules/settings","href":"/api-reference/dunning/fetch-dunning-settings"},{"title":"Update dunning settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/dunning-schedules/settings","href":"/api-reference/dunning/update-dunning-settings"},{"title":"Upload dunning e-mail logo","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/settings/logo","href":"/api-reference/dunning/upload-dunning-e-mail-logo"},{"title":"Fetch dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/dunning-schedules/{id}","href":"/api-reference/dunning/fetch-dunning-schedule"},{"title":"Update dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /v1/dunning-schedules/{id}","href":"/api-reference/dunning/update-dunning-schedule"},{"title":"Delete dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/dunning-schedules/{id}","href":"/api-reference/dunning/delete-dunning-schedule"},{"title":"Archive dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/{id}/archive","href":"/api-reference/dunning/archive-dunning-schedule"},{"title":"Unarchive dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/{id}/unarchive","href":"/api-reference/dunning/unarchive-dunning-schedule"},{"title":"Duplicate dunning schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/dunning-schedules/{id}/duplicate","href":"/api-reference/dunning/duplicate-dunning-schedule"}]},{"group":"Custom Fields","pages":[{"title":"List custom fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/custom-fields/","href":"/api-reference/custom-fields/list-custom-fields"},{"title":"Create custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/custom-fields/","href":"/api-reference/custom-fields/create-custom-field"},{"title":"Fetch custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/custom-fields/{id}","href":"/api-reference/custom-fields/fetch-custom-field"},{"title":"Delete custom field","description":"Deletes a custom field that no module of Aira owns, no record holds a value of and no importable template names, so the list of custom fields no longer shows it.\n\nRequires the role `custom_fields:write`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /v1/custom-fields/{id}","href":"/api-reference/custom-fields/delete-custom-field"},{"title":"Update custom field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /v1/custom-fields/{id}","href":"/api-reference/custom-fields/update-custom-field"}]}]},{"tab":"Changelog","icon":"history","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Update custom field - Aira","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","SectionHeading-uish4Ed2.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}