{
"error": {
"code": "validation_error",
"message": "The request is invalid. details lists up to 20 field errors. Request bodies are limited to 2 MiB.",
"request_id": "req_example"
}
}
{
"error": {
"code": "invalid_token",
"message": "The bearer token is missing or invalid.",
"request_id": "req_example"
}
}
{
"error": {
"code": "not_found",
"message": "The resource does not exist in the current organization.",
"request_id": "req_example"
}
}
{
"error": {
"code": "conflict",
"message": "An approval rule with this case-sensitive name already exists. Nothing was saved.",
"request_id": "req_example"
}
}
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Wait for the Retry-After delay before retrying.",
"request_id": "req_example"
}
}
{
"error": {
"code": "internal_error",
"message": "Unexpected server failure. Include the request ID when contacting support.",
"request_id": "req_example"
}
}
{
"error": {
"code": "service_unavailable",
"message": "Temporarily unavailable. Retry after the Retry-After delay, when provided.",
"request_id": "req_example"
}
}
Approval rules
Update an approval rule
Omitted fields are unchanged; supplied conditions replace every row and supplied approver_ids replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.
{
"error": {
"code": "validation_error",
"message": "The request is invalid. details lists up to 20 field errors. Request bodies are limited to 2 MiB.",
"request_id": "req_example"
}
}
{
"error": {
"code": "invalid_token",
"message": "The bearer token is missing or invalid.",
"request_id": "req_example"
}
}
{
"error": {
"code": "not_found",
"message": "The resource does not exist in the current organization.",
"request_id": "req_example"
}
}
{
"error": {
"code": "conflict",
"message": "An approval rule with this case-sensitive name already exists. Nothing was saved.",
"request_id": "req_example"
}
}
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Wait for the Retry-After delay before retrying.",
"request_id": "req_example"
}
}
{
"error": {
"code": "internal_error",
"message": "Unexpected server failure. Include the request ID when contacting support.",
"request_id": "req_example"
}
}
{
"error": {
"code": "service_unavailable",
"message": "Temporarily unavailable. Retry after the Retry-After delay, when provided.",
"request_id": "req_example"
}
}
Authorizations
Authorization
string
header
required
Personal API key sent as a bearer token, together with X-Organization-Id. The key must have at least the access level the endpoint requires (read, write or admin).
Headers
X-Organization-Id
string
The organization to act in. Required for personal API keys; list the organizations you can access with GET /v1/organizations.
Path Parameters
id
string<uuid>
required
Body
application/json
name
string
Required string length: 1 - 100
conditions
object
What the rule applies to, as a View filter over the subject's fields. Both subjects: the workspace company (company.id). Invoices: only fields an invoice answers by itself: supplier, supplier country, recipient, amount, currency, references, delivery address and issued date (no relative ranges). Agreement fields are rejected, since agreements are matched after an invoice arrives. Purchase orders: supplier, buyer (recipient.id), amount excluding VAT, currency and owner. Required on create, except for the fallback rule, which has none.
Show child attributes
approver_ids
string[]
Members who approve what the rule matches. Rules add people, never access. Puts everyone in step 1; send steps instead to approve in several steps, never both. Refused on a rule in several steps: send steps for it.
Maximum array length: 50
Required string length: 1 - 255
approver_team_ids
string<uuid>[]
Teams that approve what the rule matches: each counts as one approver, and whoever is in it while a request waits may decide for it. Puts everyone in step 1; send steps instead to approve in several steps, never both. Refused on a rule in several steps: send steps for it.
Maximum array length: 50
steps
object[]
Who approves what the rule matches, in steps, first step first (WD-2904). Steps set only the order: one approval from anyone in a step ends its turn and starts the next step's. The invoice is approved at the organization's required number of approvals, whatever the number of steps. A person or team is in one step only, and empty steps are dropped. Invoice rules only: a purchase order rule has one step. When several rules give an invoice approvers (without single_rule), approvers with the same step number share that step, and someone several rules name takes the step of the first rule in the rules' order. Invoices already waiting keep their approvers.
Maximum array length: 10
Show child attributes
fallback
boolean
Whether the rule is the fallback, as it was created: a rule never becomes or stops being the fallback (WD-2930). Accepted when it matches.
Response
The saved rule.
id
string<uuid>
required
name
string
required
subject
enum<string>
required
What the rule approves: invoice, or purchase_order for orders made in Watchdog before they open, and amendments that raise their commitment or change their supplier, buyer, currency or commitment basis. Fixed once the rule is created.
Available options:
invoice,
purchase_order
fallback
boolean
required
The fallback rule: who approves what no other rule of its subject gives approvers, at intake after the other rules, and when a waiting record loses its last approver. It has no conditions and matches every record, so a fallback for purchase orders makes every order made in Watchdog wait for approval. At most one per subject (WD-2930). Rules made as fallbacks before then may still have conditions and keep them.
position
integer
required
Where the rule stands in the organization's order, lowest first. Under the approval policy's single_rule, an invoice takes its approvers from the first rule that matches it, in that rule's steps. Otherwise every matching rule adds its approvers by step number, and someone several rules name takes the step of the first.
Required range: x >= 0
approvers
object[]
required
Show child attributes
approver_teams
object[]
required
Teams that approve what the rule matches, by name.
Show child attributes
references
object[]
required
Names of the companies, suppliers and recipients the conditions name.
Show child attributes
skipped_people
object[]
required
People the rule names but did not add, once per person and reason, on invoices in Inbox or Needs approval, as of when each invoice arrived. Blocking reasons come first, then hand removals.
Show child attributes
skipped_teams
object[]
required
Teams the rule names but did not add, on invoices in Inbox or Needs approval, as of when each invoice arrived, by name. Such an invoice gets the fallback rules' approvers, or none.
Show child attributes
created_at
string<date-time>
required
updated_at
string<date-time>
required
conditions
any
A saved View filter, returned as stored for unrestricted callers; it may be null or no longer valid. A restricted caller receives null with filter_restricted=true when the definition contains unavailable references or cannot be safely read. To replace it, send a filter in the shape the View create and update requests accept.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Watchdog Help Center","public":true,"description":"Guides for using Watchdog and integrating with the Watchdog API.","colors":{"primary":"#534AB7","light":"#8892E2","dark":"#6D78D5"},"logo":{"light":"https://mintcdn.com/watchdog-7cea1057/Dh-eFmjGLovXU6Kl/assets/logo-light.svg?fit=max\u0026auto=format\u0026n=Dh-eFmjGLovXU6Kl\u0026q=85\u0026s=86a9912b557a144bb94ec96beb1015f2","dark":"https://mintcdn.com/watchdog-7cea1057/Dh-eFmjGLovXU6Kl/assets/logo-dark.svg?fit=max\u0026auto=format\u0026n=Dh-eFmjGLovXU6Kl\u0026q=85\u0026s=9822ea65fa3bea7cc676786ee0c7cb14","href":"/"},"favicon":"https://mintcdn.com/watchdog-7cea1057/Dh-eFmjGLovXU6Kl/assets/favicon.svg?fit=max\u0026auto=format\u0026n=Dh-eFmjGLovXU6Kl\u0026q=85\u0026s=0a8a123bda5ec654b4d387427a855ec1","api":{"playground":{"display":"none"},"examples":{"defaults":"required","languages":["curl","javascript","python"],"prefill":false,"autogenerate":true},"url":"full"},"footer":{"links":[{"header":"Watchdog","items":[{"label":"Website","href":"https://watchdog.no"},{"label":"Support","href":"mailto:support@watchdog.no"}]}]},"seo":{"metatags":{"canonical":"https://docs.watchdog.no"},"organization":{"name":"Watchdog","url":"https://watchdog.no","logo":"https://docs.watchdog.no/assets/logo-light.svg"},"indexing":"navigable","trailingSlash":false},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Watchdog","icon":"house","href":"https://watchdog.no"}]},"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"mailto:support@watchdog.no","label":"Support"}],"primary":{"type":"button","label":"Open Watchdog","href":"https://app.watchdog.no"}},"href":""},{"language":"no","footer":{"links":[{"header":"Watchdog","items":[{"label":"Nettside","href":"https://watchdog.no"},{"label":"Kundestøtte","href":"mailto:support@watchdog.no"}]}]},"navbar":{"links":[{"href":"mailto:support@watchdog.no","label":"Kundestøtte"}],"primary":{"type":"button","label":"Åpne Watchdog","href":"https://app.watchdog.no"}},"href":"no"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"watchdog-7cea1057","hasAudioNarration":false,"actualSubdomain":"watchdog-7cea1057","customDomains":["docs.watchdog.no"],"gitSource":{"type":"github","owner":"watchdog-no","repo":"watchdog-monorepo","deployBranch":"main","contentDirectory":"docs/help-center","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afd9b25fd124ae05f54c66b","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"en","tag":"API","count":300},{"language":"en","tag":"Endpoints","count":282},{"language":"en","tag":"Invoices","count":48},{"language":"en","tag":"Integrations","count":41},{"language":"en","tag":"Agreements","count":36},{"language":"en","tag":"User guides","count":33},{"language":"no","tag":"Brukerveiledninger","count":33},{"language":"en","tag":"Purchase orders","count":31},{"language":"en","tag":"Use Watchdog","count":29},{"language":"no","tag":"Bruk Watchdog","count":29},{"language":"en","tag":"Companies","count":21},{"language":"en","tag":"Documents","count":18},{"language":"no","tag":"Integrasjoner","count":18},{"language":"no","tag":"Bruk Watchdog med KI","count":6},{"language":"no","tag":"Kom i gang","count":3},{"language":"no","tag":"Administrasjon","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"snippets/copy-value.css","content":".copy-value-button{opacity:0;transition:opacity 150ms}tr:hover .copy-value-button,.copy-value-button:focus-visible,.copy-value-button[data-copied=\"true\"]{opacity:1}@media (hover: none){.copy-value-button{opacity:1}}"}],"page":{"pagePath":"api-reference/endpoints/approval-rules/update-an-approval-rule","slug":"/api-reference/endpoints/approval-rules/update-an-approval-rule","pageMetadata":{"title":"Update an approval rule","description":"Omitted fields are unchanged; supplied `conditions` replace every row and supplied `approver_ids` replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/approval-rules/{id}","href":"/api-reference/endpoints/approval-rules/update-an-approval-rule","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {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(_components.p, {\n children: [\"Omitted fields are unchanged; supplied \", _jsx(_components.code, {\n children: \"conditions\"\n }), \" replace every row and supplied \", _jsx(_components.code, {\n children: \"approver_ids\"\n }), \" replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.\"]\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 an approval rule","description":"Omitted fields are unchanged; supplied `conditions` replace every row and supplied `approver_ids` replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/approval-rules/{id}","href":"/api-reference/endpoints/approval-rules/update-an-approval-rule","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateApprovalRule","summary":"Update an approval rule","tags":["Approval rules","Invoices","Settings"],"description":"Omitted fields are unchanged; supplied `conditions` replace every row and supplied `approver_ids` replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.","parameters":["7b8d92a4-a2b6-465b-a2a1-a90d49dda9f7","12258a1b-35f5-4341-95be-e5ef7331d73c"],"security":["0b968170-3201-40e3-82c6-5e091da540ce"],"x-watchdog-access":"organization","x-watchdog-permission":"admin","x-watchdog-authentication":"organization","x-watchdog-public":true,"x-watchdog-mcp":false,"requestBody":"813591f4-4825-4f4b-8a54-6d370bd3def4","responses":{"200":"d403848b-eeae-4826-be41-e7d9e86a5aac","400":"c9bbc79d-064a-4523-b137-182490c82241","401":"73e0d5b5-0f9f-47b3-b575-0cce005588f3","403":"2db465b9-2cc4-43be-8dde-474c02d5fcfc","404":"55628a7f-dfc8-44ba-a28b-43a7f925724b","409":"37751df3-662a-4229-a9ff-6a786b4f7f91","429":"65e06133-6f25-4cae-bcc7-b9a5ffdecee8","500":"7ccb5ba2-1965-4df0-8293-d61932dbac27","503":"cc1f417d-d9a5-4707-ac65-1e6fdd734f10"},"method":"patch","type":"path","servers":["0f259b2e-ff56-4327-8143-523787cf2165"],"path":"/v1/approval-rules/{id}","baseUrlOptions":["https://api.watchdog.no"],"title":"Update an approval rule","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","urlDisplay":"full"},"dependencies":{"parameters":{"7b8d92a4-a2b6-465b-a2a1-a90d49dda9f7":{"name":"X-Organization-Id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"The organization to act in. Required for personal API keys; list the organizations you can access with GET /v1/organizations.","uniqueKey":"","typeLabel":"string"},"description":"The organization to act in. Required for personal API keys; list the organizations you can access with GET /v1/organizations."},"12258a1b-35f5-4341-95be-e5ef7331d73c":{"schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"required":true,"name":"id","in":"path"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"uniqueKey":"name","typeLabel":"string"},"conditions":{"type":"object","properties":{"schema_version":{"type":"number","enum":[1],"isRequired":true,"uniqueKey":"conditions.schema_version","typeLabel":"enum\u003cnumber>"},"root":{"type":"object","properties":{"combinator":{"type":"string","enum":["and","or"],"isRequired":true,"uniqueKey":"conditions.root.combinator","typeLabel":"enum\u003cstring>"},"children":{"type":"array","items":{"oneOf":[{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["invoice.category"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.0.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.0.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","enum":["invoice","credit_note","self_billed_invoice","reminder","collection_notice"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"array","items":{"type":"string","enum":["invoice","credit_note","self_billed_invoice","reminder","collection_notice"],"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.0.value.oneOf.1.items.[INDEX]","typeLabel":"enum\u003cstring>"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"enum\u003cstring>[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.0.value","typeLabel":"enum\u003cstring> | enum\u003cstring>[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.id","recipient.id","agreement.id","agreement.tag"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.1.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.1.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"conditions.root.children.items.[INDEX].oneOf.1.value.oneOf.1.items.[INDEX]","typeLabel":"string\u003cuuid>"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string\u003cuuid>[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.1.value","typeLabel":"string\u003cuuid> | string\u003cuuid>[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.2.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.2.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.2.value.oneOf.1.items.[INDEX]","typeLabel":"string"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.2.value","typeLabel":"string | string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.3.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains","not_contains"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.3.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.3.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.4.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains_any"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.4.op","typeLabel":"enum\u003cstring>"},"value":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.4.value.items.[INDEX]","typeLabel":"string"},"minItems":1,"maxItems":100,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.4.value","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["invoice.amount"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.5.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["eq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.5.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.5.value.oneOf.0","typeLabel":"number"},{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.5.value.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.5.value","typeLabel":"number | string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["agreement.expiration_date","invoice.issued_date","invoice.due_date","invoice.delivery_date"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.6.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["on","before","on_or_before","after","on_or_after"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.6.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","format":"date","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.6.value","typeLabel":"string\u003cdate>"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["agreement.expiration_date","invoice.issued_date","invoice.due_date","invoice.delivery_date"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.7.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["within"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.7.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","enum":["last_30_days","last_90_days","last_365_days","expiring_30_days","expiring_60_days","expiring_90_days"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.7.value","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"The workspace company an invoice or order belongs to: IDs from `GET /v1/companies`. An invoice without a company is in none.","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["company.id"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.8.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.8.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.8.value.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"conditions.root.children.items.[INDEX].oneOf.8.value.oneOf.1.items.[INDEX]","typeLabel":"string\u003cuuid>"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.8.value.oneOf.1","typeLabel":"string\u003cuuid>[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.8.value","typeLabel":"string\u003cuuid> | string\u003cuuid>[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.owner"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.9.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.9.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.9.value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.9.value.oneOf.1.items.[INDEX]","typeLabel":"string"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.9.value.oneOf.1","typeLabel":"string[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.9.value","typeLabel":"string | string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.currency"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.10.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.10.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.10.value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.10.value.oneOf.1.items.[INDEX]","typeLabel":"string"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.10.value.oneOf.1","typeLabel":"string[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.10.value","typeLabel":"string | string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.currency"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.11.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains","not_contains"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.11.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.11.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.amount"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.12.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["eq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.12.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.12.value.oneOf.0","typeLabel":"number"},{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.12.value.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.12.value","typeLabel":"number | string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","required":["combinator","children"],"properties":{"combinator":{"type":"string","enum":["and","or"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.combinator","typeLabel":"enum\u003cstring>"},"children":{"type":"array","items":{"oneOf":[{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["invoice.category"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","enum":["invoice","credit_note","self_billed_invoice","reminder","collection_notice"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"array","items":{"type":"string","enum":["invoice","credit_note","self_billed_invoice","reminder","collection_notice"],"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.value.oneOf.1.items.[INDEX]","typeLabel":"enum\u003cstring>"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"enum\u003cstring>[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.value","typeLabel":"enum\u003cstring> | enum\u003cstring>[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.id","recipient.id","agreement.id","agreement.tag"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.value.oneOf.1.items.[INDEX]","typeLabel":"string\u003cuuid>"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string\u003cuuid>[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.value","typeLabel":"string\u003cuuid> | string\u003cuuid>[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.value.oneOf.1.items.[INDEX]","typeLabel":"string"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.value","typeLabel":"string | string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains","not_contains"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains_any"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.op","typeLabel":"enum\u003cstring>"},"value":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.value.items.[INDEX]","typeLabel":"string"},"minItems":1,"maxItems":100,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.value","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["invoice.amount"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["eq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.value.oneOf.0","typeLabel":"number"},{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.value.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.value","typeLabel":"number | string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["agreement.expiration_date","invoice.issued_date","invoice.due_date","invoice.delivery_date"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["on","before","on_or_before","after","on_or_after"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","format":"date","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6.value","typeLabel":"string\u003cdate>"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["agreement.expiration_date","invoice.issued_date","invoice.due_date","invoice.delivery_date"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["within"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","enum":["last_30_days","last_90_days","last_365_days","expiring_30_days","expiring_60_days","expiring_90_days"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7.value","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"The workspace company an invoice or order belongs to: IDs from `GET /v1/companies`. An invoice without a company is in none.","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["company.id"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.value.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.value.oneOf.1.items.[INDEX]","typeLabel":"string\u003cuuid>"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.value.oneOf.1","typeLabel":"string\u003cuuid>[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.value","typeLabel":"string\u003cuuid> | string\u003cuuid>[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.owner"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.value.oneOf.1.items.[INDEX]","typeLabel":"string"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.value.oneOf.1","typeLabel":"string[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.value","typeLabel":"string | string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.currency"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.value.oneOf.1.items.[INDEX]","typeLabel":"string"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.value.oneOf.1","typeLabel":"string[]"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.value","typeLabel":"string | string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.currency"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains","not_contains"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.amount"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["eq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.op","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.value.oneOf.0","typeLabel":"number"},{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.value.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.value","typeLabel":"number | string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","required":["combinator","children"],"properties":{"combinator":{"type":"string","enum":["and","or"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.combinator","typeLabel":"enum\u003cstring>"},"children":{"type":"array","items":{"oneOf":[{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["invoice.category"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.id","recipient.id","agreement.id","agreement.tag"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains","not_contains"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["supplier.country","invoice.currency","invoice.reference","invoice.buyer_reference","invoice.seller_reference","invoice.buyer_contact_name","invoice.order_references","invoice.contract_reference","invoice.project_reference","invoice.accounting_cost","invoice.delivery_name","invoice.delivery_street","invoice.delivery_postal_code","invoice.delivery_city","invoice.delivery_country","invoice.invoice_number","invoice.invoice_note","invoice.delivery_address"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains_any"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.op","typeLabel":"enum\u003cstring>"},"value":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.value.items.[INDEX]","typeLabel":"string"},"minItems":1,"maxItems":100,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4.value","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["invoice.amount"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["eq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["agreement.expiration_date","invoice.issued_date","invoice.due_date","invoice.delivery_date"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["on","before","on_or_before","after","on_or_after"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","format":"date","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6.value","typeLabel":"string\u003cdate>"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["agreement.expiration_date","invoice.issued_date","invoice.due_date","invoice.delivery_date"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["within"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","enum":["last_30_days","last_90_days","last_365_days","expiring_30_days","expiring_60_days","expiring_90_days"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7.value","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"The workspace company an invoice or order belongs to: IDs from `GET /v1/companies`. An invoice without a company is in none.","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["company.id"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.owner"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.currency"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["is","is_not","is_any_of","is_none_of"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.currency"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["contains","not_contains"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11.op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["field","op","value"],"properties":{"field":{"type":"string","enum":["purchase_order.amount"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.field","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["eq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.op","typeLabel":"enum\u003cstring>"},"value":{"type":"any","isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12.value","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.12","typeLabel":"object"}],"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":20,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13.children","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX].oneOf.13","typeLabel":"object"}],"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":20,"isRequired":true,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13.children","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"conditions.root.children.items.[INDEX].oneOf.13","typeLabel":"object"}],"uniqueKey":"conditions.root.children.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":20,"isRequired":true,"uniqueKey":"conditions.root.children","typeLabel":"object[]"}},"required":["combinator","children"],"additionalProperties":false,"isRequired":true,"uniqueKey":"conditions.root","typeLabel":"object"}},"required":["schema_version","root"],"additionalProperties":false,"description":"What the rule applies to, as a View filter over the subject's fields. Both subjects: the workspace company (company.id). Invoices: only fields an invoice answers by itself: supplier, supplier country, recipient, amount, currency, references, delivery address and issued date (no relative ranges). Agreement fields are rejected, since agreements are matched after an invoice arrives. Purchase orders: supplier, buyer (recipient.id), amount excluding VAT, currency and owner. Required on create, except for the fallback rule, which has none.","uniqueKey":"conditions","typeLabel":"object"},"approver_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"uniqueKey":"approver_ids.items.[INDEX]","typeLabel":"string"},"maxItems":50,"description":"Members who approve what the rule matches. Rules add people, never access. Puts everyone in step 1; send `steps` instead to approve in several steps, never both. Refused on a rule in several steps: send `steps` for it.","uniqueKey":"approver_ids","typeLabel":"string[]"},"approver_team_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"approver_team_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"maxItems":50,"description":"Teams that approve what the rule matches: each counts as one approver, and whoever is in it while a request waits may decide for it. Puts everyone in step 1; send `steps` instead to approve in several steps, never both. Refused on a rule in several steps: send `steps` for it.","uniqueKey":"approver_team_ids","typeLabel":"string\u003cuuid>[]"},"steps":{"type":"array","items":{"type":"object","properties":{"user_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"uniqueKey":"steps.items.[INDEX].user_ids.items.[INDEX]","typeLabel":"string"},"maxItems":50,"default":[],"description":"Members who approve in this step.","uniqueKey":"steps.items.[INDEX].user_ids","typeLabel":"string[]"},"team_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"steps.items.[INDEX].team_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"maxItems":50,"default":[],"description":"Teams that approve in this step; any one member decides for the team.","uniqueKey":"steps.items.[INDEX].team_ids","typeLabel":"string\u003cuuid>[]"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX]","typeLabel":"object"},"maxItems":10,"description":"Who approves what the rule matches, in steps, first step first (WD-2904). Steps set only the order: one approval from anyone in a step ends its turn and starts the next step's. The invoice is approved at the organization's required number of approvals, whatever the number of steps. A person or team is in one step only, and empty steps are dropped. Invoice rules only: a purchase order rule has one step. When several rules give an invoice approvers (without `single_rule`), approvers with the same step number share that step, and someone several rules name takes the step of the first rule in the rules' order. Invoices already waiting keep their approvers.","uniqueKey":"steps","typeLabel":"object[]"},"fallback":{"type":"boolean","description":"Whether the rule is the fallback, as it was created: a rule never becomes or stops being the fallback (WD-2930). Accepted when it matches.","uniqueKey":"fallback","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","approver_ids":["\u003cstring>"],"approver_team_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"steps":[{"user_ids":[],"team_ids":[]}],"fallback":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"d403848b-eeae-4826-be41-e7d9e86a5aac":{"description":"The saved rule.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"subject":{"type":"string","enum":["invoice","purchase_order"],"description":"What the rule approves: `invoice`, or `purchase_order` for orders made in Watchdog before they open, and amendments that raise their commitment or change their supplier, buyer, currency or commitment basis. Fixed once the rule is created.","isRequired":true,"uniqueKey":"subject","typeLabel":"enum\u003cstring>"},"fallback":{"type":"boolean","description":"The fallback rule: who approves what no other rule of its subject gives approvers, at intake after the other rules, and when a waiting record loses its last approver. It has no conditions and matches every record, so a fallback for purchase orders makes every order made in Watchdog wait for approval. At most one per subject (WD-2930). Rules made as fallbacks before then may still have conditions and keep them.","isRequired":true,"uniqueKey":"fallback","typeLabel":"boolean"},"position":{"type":"integer","minimum":0,"description":"Where the rule stands in the organization's order, lowest first. Under the approval policy's `single_rule`, an invoice takes its approvers from the first rule that matches it, in that rule's steps. Otherwise every matching rule adds its approvers by step number, and someone several rules name takes the step of the first.","isRequired":true,"uniqueKey":"position","typeLabel":"integer"},"approvers":{"type":"array","items":{"type":"object","required":["step","user_id","first_name","last_name","email"],"properties":{"user_id":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"approvers.items.[INDEX].user_id","typeLabel":"string"},"first_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"approvers.items.[INDEX].first_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"approvers.items.[INDEX].first_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approvers.items.[INDEX].first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"approvers.items.[INDEX].last_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"approvers.items.[INDEX].last_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approvers.items.[INDEX].last_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"approvers.items.[INDEX].email.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"approvers.items.[INDEX].email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"approvers.items.[INDEX].email","typeLabel":"string | null"},"step":{"type":"integer","minimum":1,"description":"The step the rule puts the approver in, 1 first (WD-2904).","isRequired":true,"uniqueKey":"approvers.items.[INDEX].step","typeLabel":"integer"}},"uniqueKey":"approvers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"approvers","typeLabel":"object[]"},"approver_teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"approver_teams.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"approver_teams.items.[INDEX].name","typeLabel":"string"},"step":{"type":"integer","minimum":1,"description":"The step the rule puts the approver in, 1 first (WD-2904).","isRequired":true,"uniqueKey":"approver_teams.items.[INDEX].step","typeLabel":"integer"}},"required":["id","name","step"],"uniqueKey":"approver_teams.items.[INDEX]","typeLabel":"object"},"description":"Teams that approve what the rule matches, by name.","isRequired":true,"uniqueKey":"approver_teams","typeLabel":"object[]"},"references":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"references.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"references.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"references.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"references.items.[INDEX].name","typeLabel":"string | null"},"missing":{"type":"boolean","isRequired":true,"uniqueKey":"references.items.[INDEX].missing","typeLabel":"boolean"},"type":{"type":"string","enum":["supplier","recipient","agreement","agreement_tag","company"],"description":"`company`: a workspace company, which only approval rules name.","isRequired":true,"uniqueKey":"references.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"supplier_names":{"type":"array","items":{"type":"string","uniqueKey":"references.items.[INDEX].supplier_names.items.[INDEX]","typeLabel":"string"},"description":"Supplier names for agreement references.","uniqueKey":"references.items.[INDEX].supplier_names","typeLabel":"string[]"}},"required":["id","name","missing","type"],"uniqueKey":"references.items.[INDEX]","typeLabel":"object"},"description":"Names of the companies, suppliers and recipients the conditions name.","isRequired":true,"uniqueKey":"references","typeLabel":"object[]"},"skipped_people":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].user_id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].name","typeLabel":"string | null"},"reason":{"type":"string","enum":["no_access","no_write","removed_by_hand"],"description":"`no_access`: their access limits hide the invoice. `no_write`: role without write access. `removed_by_hand`: a person removed them from the invoice.","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","exclusiveMinimum":0,"description":"How many invoices the rule skipped them on.","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].count","typeLabel":"integer"},"invoices":{"type":"object","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"invoice_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid>"},"invoice_number":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX].invoice_number.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX].invoice_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX].invoice_number","typeLabel":"string | null"},"supplier_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX].supplier_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX].supplier_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX].supplier_name","typeLabel":"string | null"}},"required":["invoice_id","invoice_number","supplier_name"],"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices.items.[INDEX]","typeLabel":"object"},"maxItems":10,"description":"Up to 10 of the invoices, by supplier and number. The count gives the total.","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.invoices","typeLabel":"object[]"},"supplier_name":{"oneOf":[{"type":"string","description":"The supplier every one of the invoices is from, or null when there are several.","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.supplier_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The supplier every one of the invoices is from, or null when there are several.","isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.supplier_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices.supplier_name","typeLabel":"string | null"}},"required":["invoices","supplier_name"],"isRequired":true,"uniqueKey":"skipped_people.items.[INDEX].invoices","typeLabel":"object"}},"required":["user_id","name","reason","count","invoices"],"uniqueKey":"skipped_people.items.[INDEX]","typeLabel":"object"},"description":"People the rule names but did not add, once per person and reason, on invoices in Inbox or Needs approval, as of when each invoice arrived. Blocking reasons come first, then hand removals.","isRequired":true,"uniqueKey":"skipped_people","typeLabel":"object[]"},"skipped_teams":{"type":"array","items":{"type":"object","properties":{"team_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].team_id","typeLabel":"string\u003cuuid>"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].name","typeLabel":"string | null"},"reason":{"type":"string","enum":["nobody_can_act"],"description":"`nobody_can_act`: nobody in the team had write access and could see the invoice.","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","exclusiveMinimum":0,"description":"How many invoices the rule skipped the team on.","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].count","typeLabel":"integer"},"invoices":{"type":"object","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"invoice_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid>"},"invoice_number":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX].invoice_number.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX].invoice_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX].invoice_number","typeLabel":"string | null"},"supplier_name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX].supplier_name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX].supplier_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX].supplier_name","typeLabel":"string | null"}},"required":["invoice_id","invoice_number","supplier_name"],"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices.items.[INDEX]","typeLabel":"object"},"maxItems":10,"description":"Up to 10 of the invoices, by supplier and number. The count gives the total.","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.invoices","typeLabel":"object[]"},"supplier_name":{"oneOf":[{"type":"string","description":"The supplier every one of the invoices is from, or null when there are several.","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.supplier_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The supplier every one of the invoices is from, or null when there are several.","isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.supplier_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices.supplier_name","typeLabel":"string | null"}},"required":["invoices","supplier_name"],"isRequired":true,"uniqueKey":"skipped_teams.items.[INDEX].invoices","typeLabel":"object"}},"required":["team_id","name","reason","count","invoices"],"uniqueKey":"skipped_teams.items.[INDEX]","typeLabel":"object"},"description":"Teams the rule names but did not add, on invoices in Inbox or Needs approval, as of when each invoice arrived, by name. Such an invoice gets the fallback rules' approvers, or none.","isRequired":true,"uniqueKey":"skipped_teams","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"conditions":{"description":"A saved View filter, returned as stored for unrestricted callers; it may be null or no longer valid. A restricted caller receives null with filter_restricted=true when the definition contains unavailable references or cannot be safely read. To replace it, send a filter in the shape the View create and update requests accept.","uniqueKey":"conditions","typeLabel":"any"}},"required":["id","name","subject","fallback","position","approvers","approver_teams","references","skipped_people","skipped_teams","created_at","updated_at"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","subject":"invoice","fallback":true,"position":1,"approvers":[{"user_id":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","step":2}],"approver_teams":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","step":2}],"references":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","missing":true,"type":"supplier","supplier_names":["\u003cstring>"]}],"skipped_people":[{"user_id":"\u003cstring>","name":"\u003cstring>","reason":"no_access","count":123,"invoices":{"invoices":[{"invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_number":"\u003cstring>","supplier_name":"\u003cstring>"}],"supplier_name":"\u003cstring>"}}],"skipped_teams":[{"team_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","reason":"nobody_can_act","count":123,"invoices":{"invoices":[{"invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_number":"\u003cstring>","supplier_name":"\u003cstring>"}],"supplier_name":"\u003cstring>"}}],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","conditions":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"},"c9bbc79d-064a-4523-b137-182490c82241":{"description":"The request is invalid. details lists up to 20 field errors. Request bodies are limited to 2 MiB.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."}},"content":{"application/json":{"example":{"error":{"code":"validation_error","message":"The request is invalid. details lists up to 20 field errors. Request bodies are limited to 2 MiB.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"The request is invalid. details lists up to 20 field errors. Request bodies are limited to 2 MiB.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"73e0d5b5-0f9f-47b3-b575-0cce005588f3":{"description":"The bearer token is missing or invalid.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."},"WWW-Authenticate":{"schema":{"type":"string"},"required":false,"description":"Bearer authentication challenge, when supplied."}},"content":{"application/json":{"example":{"error":{"code":"invalid_token","message":"The bearer token is missing or invalid.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_token"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"The bearer token is missing or invalid.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"2db465b9-2cc4-43be-8dde-474c02d5fcfc":{"description":"Access denied. The error code says why: forbidden, token_disabled, organization_required, insufficient_role or mfa_required.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."}},"content":{"application/json":{"example":{"error":{"code":"forbidden","message":"Access denied. The error code says why: forbidden, token_disabled, organization_required, insufficient_role or mfa_required.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden","token_disabled","organization_required","insufficient_role","mfa_required"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"Access denied. The error code says why: forbidden, token_disabled, organization_required, insufficient_role or mfa_required.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"55628a7f-dfc8-44ba-a28b-43a7f925724b":{"description":"The resource does not exist in the current organization.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."}},"content":{"application/json":{"example":{"error":{"code":"not_found","message":"The resource does not exist in the current organization.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"The resource does not exist in the current organization.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"37751df3-662a-4229-a9ff-6a786b4f7f91":{"description":"An approval rule with this case-sensitive name already exists. Nothing was saved.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."}},"content":{"application/json":{"example":{"error":{"code":"conflict","message":"An approval rule with this case-sensitive name already exists. Nothing was saved.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["conflict"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"conflict","message":"An approval rule with this case-sensitive name already exists. Nothing was saved.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"65e06133-6f25-4cae-bcc7-b9a5ffdecee8":{"description":"Too many requests. Wait for the Retry-After delay before retrying.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."},"Retry-After":{"schema":{"type":"string","example":"60"},"required":true,"description":"Seconds to wait before retrying the request."}},"content":{"application/json":{"example":{"error":{"code":"rate_limit_exceeded","message":"Too many requests. Wait for the Retry-After delay before retrying.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"rate_limit_exceeded","message":"Too many requests. Wait for the Retry-After delay before retrying.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"7ccb5ba2-1965-4df0-8293-d61932dbac27":{"description":"Unexpected server failure. Include the request ID when contacting support.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."}},"content":{"application/json":{"example":{"error":{"code":"internal_error","message":"Unexpected server failure. Include the request ID when contacting support.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"internal_error","message":"Unexpected server failure. Include the request ID when contacting support.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"cc1f417d-d9a5-4707-ac65-1e6fdd734f10":{"description":"Temporarily unavailable. Retry after the Retry-After delay, when provided.","headers":{"X-Request-Id":{"schema":{"type":"string"},"required":true,"description":"Request ID, also included in error bodies. Include it when contacting support."},"Cache-Control":{"schema":{"type":"string","enum":["private, no-store","private, no-store, no-transform"]},"required":false,"description":"API responses are private and must not be cached."},"X-RateLimit-Limit":{"schema":{"type":"string","example":"500"},"required":false,"description":"Requests allowed per minute for this credential, or failed API key attempts allowed per minute from this IP address."},"Retry-After":{"schema":{"type":"string","example":"60"},"required":true,"description":"Seconds to wait before retrying the request."}},"content":{"application/json":{"example":{"error":{"code":"service_unavailable","message":"Temporarily unavailable. Retry after the Retry-After delay, when provided.","request_id":"req_example"}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["service_unavailable"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["code","field","message"],"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"maxItems":20,"uniqueKey":"error.details","typeLabel":"object[]"},"workflow_run_id":{"type":"string","format":"uuid","uniqueKey":"error.workflow_run_id","typeLabel":"string\u003cuuid>"},"import_id":{"type":"string","format":"uuid","uniqueKey":"error.import_id","typeLabel":"string\u003cuuid>"},"existing_party":{"type":"object","properties":{"type":{"type":"string","enum":["supplier","recipient"],"isRequired":true,"uniqueKey":"error.existing_party.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.existing_party.id","typeLabel":"string\u003cuuid>"}},"required":["type","id"],"uniqueKey":"error.existing_party","typeLabel":"object"}},"required":["code","message","request_id"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"service_unavailable","message":"Temporarily unavailable. Retry after the Retry-After delay, when provided.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"0b968170-3201-40e3-82c6-5e091da540ce":{"ApiKeyBearer":{"type":"http","scheme":"bearer","description":"Personal API key sent as a bearer token, together with X-Organization-Id. The key must have at least the access level the endpoint requires (read, write or admin).","scopes":[],"schemeName":"ApiKeyBearer"}}},"servers":{"0f259b2e-ff56-4327-8143-523787cf2165":{"url":"https://api.watchdog.no","description":"Watchdog API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Personal API key sent as a bearer token, together with X-Organization-Id. The key must have at least the access level the endpoint requires (read, write or admin).","scopes":[],"schemeName":"ApiKeyBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Personal API key sent as a bearer token, together with X-Organization-Id. The key must have at least the access level the endpoint requires (read, write or admin).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyBearer","name":"Authorization"}],"title":"ApiKeyBearer"}]},"originalFileLocation":"openapi.json"},"subdomain":"watchdog-7cea1057","siteName":"Watchdog Help Center","title":"Update an approval rule - Watchdog Help Center","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoints/approval-rules/update-an-approval-rule","matchLevel":0},"no":{"href":"/no","matchLevel":4}}},"lastModified":"2026-11-18T12:33:58.012Z","originalFileLocation":"api-reference/endpoints/approval-rules/update-an-approval-rule.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"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=\"Omitted fields are unchanged; supplied conditions replace every row and supplied approver_ids replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Watchdog Help Center\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update an approval rule - Watchdog Help Center\">\u003cmeta data-mint-head property=\"og:description\" content=\"Omitted fields are unchanged; supplied conditions replace every row and supplied approver_ids replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Watchdog Help Center\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://watchdog-7cea1057.mintlify.site/_mintlify/api/og/v2?division=Approval+rules\u0026amp;title=Update+an+approval+rule\u0026amp;description=Omitted+fields+are+unchanged%3B+supplied+%60conditions%60+replace+every+row+and+supplied+%60approver_ids%60+replace+every+approver.+An+invoice+rule+gives+approvers+to+inv\u0026amp;theme=3ce0d3a3382d965df629a40c\u0026amp;signature=24152ab679b6c8053ade46a9ed9a1486d982349b56542c55ed1bf325aed388f9\">\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 an approval rule - Watchdog Help Center\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Omitted fields are unchanged; supplied conditions replace every row and supplied approver_ids replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://watchdog-7cea1057.mintlify.site/_mintlify/api/og/v2?division=Approval+rules\u0026amp;title=Update+an+approval+rule\u0026amp;description=Omitted+fields+are+unchanged%3B+supplied+%60conditions%60+replace+every+row+and+supplied+%60approver_ids%60+replace+every+approver.+An+invoice+rule+gives+approvers+to+inv\u0026amp;theme=3ce0d3a3382d965df629a40c\u0026amp;signature=24152ab679b6c8053ade46a9ed9a1486d982349b56542c55ed1bf325aed388f9\">\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/watchdog-7cea1057/6F6OCFT8gZxc3FZT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Watchdog Help Center\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#534AB7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/approval-rules/update-an-approval-rule.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://watchdog.no/#organization\",\"name\":\"Watchdog\",\"url\":\"https://watchdog.no\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.watchdog.no/assets/logo-light.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.watchdog.no#website\",\"name\":\"Watchdog Help Center\",\"url\":\"https://docs.watchdog.no\",\"publisher\":{\"@id\":\"https://watchdog.no/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule#webpage\",\"url\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule\",\"name\":\"Update an approval rule\",\"description\":\"Omitted fields are unchanged; supplied conditions replace every row and supplied approver_ids replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.\",\"dateModified\":\"2026-11-18T12:33:58.012Z\",\"isPartOf\":{\"@id\":\"https://docs.watchdog.no#website\"},\"breadcrumb\":{\"@id\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.watchdog.no/api-reference/endpoints/overview/get-the-organization-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Approval rules\",\"item\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/list-approval-rules\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update an approval rule\",\"item\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule#apireference\",\"headline\":\"Update an approval rule\",\"name\":\"Update an approval rule\",\"description\":\"Omitted fields are unchanged; supplied conditions replace every row and supplied approver_ids replace every approver. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.\",\"url\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule\",\"mainEntityOfPage\":{\"@id\":\"https://docs.watchdog.no/api-reference/endpoints/approval-rules/update-an-approval-rule#webpage\"},\"dateModified\":\"2026-11-18T12:33:58.012Z\",\"publisher\":{\"@id\":\"https://watchdog.no/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.watchdog.no#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Watchdog Help Center\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Watchdog\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/approval-rules/update-an-approval-rule.md","siteName":"Watchdog Help Center","nav":{"global":{"anchors":[{"anchor":"Watchdog","icon":"house","href":"https://watchdog.no"}]},"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"mailto:support@watchdog.no","label":"Support"}],"primary":{"type":"button","label":"Open Watchdog","href":"https://app.watchdog.no"}},"tabs":[{"tab":"User guides","icon":"book-open","pages":[{"title":"User guides","href":""}]},{"tab":"API","icon":"code","groups":[{"group":"Start here","pages":[{"title":"Watchdog API","icon":"code","tag":"Beta","href":"/api-reference/introduction"},{"title":"Quickstart","icon":"terminal","href":"/api-reference/quickstart"},{"title":"Authentication and API keys","icon":"key","href":"/api-reference/authentication"},{"title":"Upload invoices","icon":"file-arrow-up","href":"/api-reference/upload-invoices"},{"title":"API conventions","icon":"key","href":"/api-reference/conventions"},{"title":"Views","icon":"filter","href":"/api-reference/views"},{"title":"Teams","icon":"users","href":"/api-reference/teams"},{"title":"Changelog","icon":"bullhorn","href":"/api-reference/changelog"}]},{"group":"Understand your data","pages":[{"title":"Overview and search","href":"/api-reference/overview-search"},{"title":"Invoices","icon":"file-invoice","href":"/api-reference/invoices"},{"title":"Alerts","icon":"bell","href":"/api-reference/alerts"},{"title":"Claims","icon":"hand-holding-dollar","href":"/api-reference/claims"},{"title":"Agreements","icon":"file-contract","href":"/api-reference/agreements"},{"title":"Matching","icon":"link","href":"/api-reference/matching"},{"title":"Compliance checks","icon":"shield-check","href":"/api-reference/compliance-checks"},{"title":"Integrations and syncs","icon":"plug","href":"/api-reference/integrations"},{"title":"Workflow runs","icon":"list-check","href":"/api-reference/workflow-runs"},{"title":"Activity and comments","href":"/api-reference/activity"}]},{"group":"Endpoints","pages":[{"group":"Home and search","pages":[{"title":"Get the organization overview","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/overview","href":"/api-reference/endpoints/overview/get-the-organization-overview"},{"title":"Get the AP flow statistics","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/overview/ap-flow","href":"/api-reference/endpoints/overview/get-the-ap-flow-statistics"},{"title":"Find agreements, invoices, alerts, topics and claims by name","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/search","href":"/api-reference/endpoints/search/find-agreements-invoices-alerts-topics-and-claims-by-name"}]},{"group":"Identity","pages":[{"title":"Get the current user","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/me","href":"/api-reference/endpoints/identity/get-the-current-user"}]},{"group":"Organizations","pages":[{"title":"List your organizations","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/organizations","href":"/api-reference/endpoints/organizations/list-your-organizations"},{"title":"Get an organization","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/organization","href":"/api-reference/endpoints/organizations/get-an-organization"},{"title":"Set the organization logo","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/organization/logo","href":"/api-reference/endpoints/organizations/set-the-organization-logo"},{"title":"Update an organization","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/organization","href":"/api-reference/endpoints/organizations/update-an-organization"}]},{"group":"Companies","pages":[{"title":"List companies","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/companies","href":"/api-reference/endpoints/companies/list-companies"},{"title":"Create a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies","href":"/api-reference/endpoints/companies/create-a-company"},{"title":"Get a company","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/companies/{id}","href":"/api-reference/endpoints/companies/get-a-company"},{"title":"Update a company","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/companies/{id}","href":"/api-reference/endpoints/companies/update-a-company"},{"title":"Generate a description of a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/description/generate","href":"/api-reference/endpoints/companies/generate-a-description-of-a-company"},{"title":"Preview archiving a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/archive/preview","href":"/api-reference/endpoints/companies/preview-archiving-a-company"},{"title":"Archive a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/archive","href":"/api-reference/endpoints/companies/archive-a-company"},{"title":"Unarchive a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/unarchive","href":"/api-reference/endpoints/companies/unarchive-a-company"},{"title":"Preview exporting a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/export/preview","href":"/api-reference/endpoints/companies/preview-exporting-a-company"},{"title":"Export a company's data","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/companies/{id}/export","href":"/api-reference/endpoints/companies/export-a-companys-data"},{"title":"Preview erasing a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/erasure/preview","href":"/api-reference/endpoints/companies/preview-erasing-a-company"},{"title":"Request erasure of a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/erasure","href":"/api-reference/endpoints/companies/request-erasure-of-a-company"},{"title":"Cancel a company's erasure","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/companies/{id}/erasure","href":"/api-reference/endpoints/companies/cancel-a-companys-erasure"},{"title":"Get how a company receives invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/companies/{id}/reception","href":"/api-reference/endpoints/companies/get-how-a-company-receives-invoices"},{"title":"Give a company its own invoice address","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/email-address","href":"/api-reference/endpoints/companies/give-a-company-its-own-invoice-address"},{"title":"List a company's delivery addresses","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/companies/{id}/delivery-addresses","href":"/api-reference/endpoints/companies/list-a-companys-delivery-addresses"},{"title":"Add a delivery address to a company","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/{id}/delivery-addresses","href":"/api-reference/endpoints/companies/add-a-delivery-address-to-a-company"},{"title":"Change a company's delivery address","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/companies/{id}/delivery-addresses/{address_id}","href":"/api-reference/endpoints/companies/change-a-companys-delivery-address"},{"title":"List the countries with a company register","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/companies/register/countries","href":"/api-reference/endpoints/companies/list-the-countries-with-a-company-register"},{"title":"Search a country's company register","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/companies/register/search","href":"/api-reference/endpoints/companies/search-a-countrys-company-register"},{"title":"Preview a company's legal identity","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/companies/register/preview","href":"/api-reference/endpoints/companies/preview-a-companys-legal-identity"}]},{"group":"Members","pages":[{"title":"List who has access: organization members and roles","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/members","href":"/api-reference/endpoints/members/list-who-has-access:-organization-members-and-roles"},{"title":"Get an organization member","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/members/{user_id}","href":"/api-reference/endpoints/members/get-an-organization-member"},{"title":"Update a member","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/members/{user_id}","href":"/api-reference/endpoints/members/update-a-member"},{"title":"Remove an organization member","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/members/{user_id}","href":"/api-reference/endpoints/members/remove-an-organization-member"}]},{"group":"Invitations","pages":[{"title":"List organization invitations","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invitations","href":"/api-reference/endpoints/invitations/list-organization-invitations"},{"title":"Get an organization invitation","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invitations/{id}","href":"/api-reference/endpoints/invitations/get-an-organization-invitation"},{"title":"Invite organization members","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invitations","href":"/api-reference/endpoints/invitations/invite-organization-members"},{"title":"Revoke an organization invitation","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/invitations/{id}","href":"/api-reference/endpoints/invitations/revoke-an-organization-invitation"}]},{"group":"Notifications","pages":[{"title":"Read notification preferences","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notifications/preferences","href":"/api-reference/endpoints/notifications/read-notification-preferences"},{"title":"Update notification preferences","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/notifications/preferences","href":"/api-reference/endpoints/notifications/update-notification-preferences"},{"title":"Follow a View","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/notifications/followed-views/{view_id}","href":"/api-reference/endpoints/notifications/follow-a-view"},{"title":"Unfollow a View","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/notifications/followed-views/{view_id}","href":"/api-reference/endpoints/notifications/unfollow-a-view"},{"title":"List notification channels","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notifications/channels","href":"/api-reference/endpoints/notifications/list-notification-channels"},{"title":"Create a notification channel","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/notifications/channels","href":"/api-reference/endpoints/notifications/create-a-notification-channel"},{"title":"Read a notification channel","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notifications/channels/{id}","href":"/api-reference/endpoints/notifications/read-a-notification-channel"},{"title":"Disconnect a notification channel","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/notifications/channels/{id}","href":"/api-reference/endpoints/notifications/disconnect-a-notification-channel"}]},{"group":"Views","pages":[{"title":"List shared Views","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/views","href":"/api-reference/endpoints/views/list-shared-views"},{"title":"Get a shared View","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/views/{id}","href":"/api-reference/endpoints/views/get-a-shared-view"},{"title":"Create a shared View","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/views","href":"/api-reference/endpoints/views/create-a-shared-view"},{"title":"Update a shared View","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/views/{id}","href":"/api-reference/endpoints/views/update-a-shared-view"},{"title":"Delete a shared View","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/views/{id}","href":"/api-reference/endpoints/views/delete-a-shared-view"}]},{"group":"Teams","pages":[{"title":"List teams","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/teams","href":"/api-reference/endpoints/teams/list-teams"},{"title":"Get a team","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/teams/{id}","href":"/api-reference/endpoints/teams/get-a-team"},{"title":"Create a team","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/teams","href":"/api-reference/endpoints/teams/create-a-team"},{"title":"Update a team","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/teams/{id}","href":"/api-reference/endpoints/teams/update-a-team"},{"title":"Delete a team","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/teams/{id}","href":"/api-reference/endpoints/teams/delete-a-team"}]},{"group":"Approval rules","pages":[{"title":"List approval rules","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/approval-rules","href":"/api-reference/endpoints/approval-rules/list-approval-rules"},{"title":"Get an approval rule","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/approval-rules/{id}","href":"/api-reference/endpoints/approval-rules/get-an-approval-rule"},{"title":"Create an approval rule","description":"Creates a rule that makes its approvers approve the invoices its conditions match, or with subject purchase_order the orders made in Watchdog: an order that a rule matches when it is opened stays a draft waiting for approval and opens once approved, and an amendment that raises an open order's commitment or changes its supplier needs approval before it is sent or pushed. A rule decides who approves, and for a member whose access limit shows only what they approve also who can see: an approver who could not see a matched invoice or order as its approver, or cannot act on it, is skipped there, Approvers must be members of the organization. An invoice rule gives approvers to invoices as they arrive, an order rule to orders as they ask for approval: when a draft is opened, a change needs approval, or a waiting draft is asked again. Invoices and orders already waiting keep their approvers.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/approval-rules","href":"/api-reference/endpoints/approval-rules/create-an-approval-rule"},{"title":"Update an approval rule","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/approval-rules/{id}","href":"/api-reference/endpoints/approval-rules/update-an-approval-rule"},{"title":"Delete an approval rule","description":"Permanently deletes the rule with its conditions and approvers. Invoices and orders keep the approvers it gave them.","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/approval-rules/{id}","href":"/api-reference/endpoints/approval-rules/delete-an-approval-rule"},{"title":"Order approval rules","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/approval-rules/order","href":"/api-reference/endpoints/approval-rules/order-approval-rules"}]},{"group":"Approval policy","pages":[{"title":"Get the approval policy","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/approval-policy","href":"/api-reference/endpoints/approval-policy/get-the-approval-policy"},{"title":"Update the approval policy","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/approval-policy","href":"/api-reference/endpoints/approval-policy/update-the-approval-policy"}]},{"group":"Usage","pages":[{"title":"List usage by billing period","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/usage","href":"/api-reference/endpoints/usage/list-usage-by-billing-period"},{"title":"Get usage policy","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/usage/policy","href":"/api-reference/endpoints/usage/get-usage-policy"},{"title":"List usage policy revisions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/usage/policy/revisions","href":"/api-reference/endpoints/usage/list-usage-policy-revisions"},{"title":"Update usage overage policy","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/usage/policy","href":"/api-reference/endpoints/usage/update-usage-overage-policy"}]},{"group":"Agreements","pages":[{"title":"List agreements","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements","href":"/api-reference/endpoints/agreements/list-agreements"},{"title":"Count agreements by status","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/counts","href":"/api-reference/endpoints/agreements/count-agreements-by-status"},{"title":"Get an agreement","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}","href":"/api-reference/endpoints/agreements/get-an-agreement"},{"title":"List suggested instruction edits","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/context-suggestions","href":"/api-reference/endpoints/agreements/list-suggested-instruction-edits"},{"title":"List the Views that include an agreement","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/views","href":"/api-reference/endpoints/agreements/list-the-views-that-include-an-agreement"},{"title":"Create an agreement","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements","href":"/api-reference/endpoints/agreements/create-an-agreement"},{"title":"Suggest agreement details","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/suggest-details","href":"/api-reference/endpoints/agreements/suggest-agreement-details"},{"title":"Refresh an agreement's invoice matching","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/matching/refresh","href":"/api-reference/endpoints/agreements/refresh-an-agreements-invoice-matching"},{"title":"Find matching purchase orders","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/purchase-order-matching","href":"/api-reference/endpoints/agreements/find-matching-purchase-orders"},{"title":"List excluded invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/invoice-exclusions","href":"/api-reference/endpoints/agreements/list-excluded-invoices"},{"title":"Exclude invoices from an agreement","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/invoice-exclusions","href":"/api-reference/endpoints/agreements/exclude-invoices-from-an-agreement"},{"title":"Restore excluded invoices","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/invoice-exclusions/delete","href":"/api-reference/endpoints/agreements/restore-excluded-invoices"},{"title":"Accept a suggested instruction edit","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/context-suggestions/{suggestion_id}/accept","href":"/api-reference/endpoints/agreements/accept-a-suggested-instruction-edit"},{"title":"Reject a suggested instruction edit","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/context-suggestions/{suggestion_id}/reject","href":"/api-reference/endpoints/agreements/reject-a-suggested-instruction-edit"},{"title":"Teach the agreement a rule from alerts (don't flag this again)","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/teach","href":"/api-reference/endpoints/agreements/teach-the-agreement-a-rule-from-alerts-dont-flag-this-again"},{"title":"Edit an agreement","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/agreements/{id}","href":"/api-reference/endpoints/agreements/edit-an-agreement"},{"title":"Preview deleting an agreement","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/delete/preview","href":"/api-reference/endpoints/agreements/preview-deleting-an-agreement"},{"title":"Delete an agreement","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/agreements/{id}","href":"/api-reference/endpoints/agreements/delete-an-agreement"},{"group":"Tags","pages":[{"title":"List agreement tags","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/tags","href":"/api-reference/endpoints/agreement-tags/list-agreement-tags"},{"title":"Create an agreement tag","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/tags","href":"/api-reference/endpoints/agreement-tags/create-an-agreement-tag"},{"title":"Rename an agreement tag","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/agreements/tags/{id}","href":"/api-reference/endpoints/agreement-tags/rename-an-agreement-tag"},{"title":"Preview deleting an agreement tag","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/tags/{id}/delete/preview","href":"/api-reference/endpoints/agreement-tags/preview-deleting-an-agreement-tag"},{"title":"Delete an agreement tag","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/agreements/tags/{id}","href":"/api-reference/endpoints/agreement-tags/delete-an-agreement-tag"}]},{"group":"Prices","pages":[{"title":"List the agreed prices of an agreement","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/price-items","href":"/api-reference/endpoints/agreement-prices/list-the-agreed-prices-of-an-agreement"},{"title":"Export agreement prices as CSV","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/price-items/export","href":"/api-reference/endpoints/agreement-prices/export-agreement-prices-as-csv"},{"title":"Add agreement prices","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/price-items","href":"/api-reference/endpoints/agreement-prices/add-agreement-prices"},{"title":"Edit agreement prices","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/agreements/{id}/price-items","href":"/api-reference/endpoints/agreement-prices/edit-agreement-prices"},{"title":"Remove matching agreement prices","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/price-items/delete","href":"/api-reference/endpoints/agreement-prices/remove-matching-agreement-prices"}]},{"group":"Documents","pages":[{"title":"List agreement documents","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/documents","href":"/api-reference/endpoints/agreement-documents/list-agreement-documents"},{"title":"Import documents to an agreement","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/document-imports","href":"/api-reference/endpoints/agreement-documents/import-documents-to-an-agreement"},{"title":"Edit document role or position","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/agreements/{id}/documents/{document_id}","href":"/api-reference/endpoints/agreement-documents/edit-document-role-or-position"},{"title":"Unlink an agreement document","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/agreements/{id}/documents/{document_id}","href":"/api-reference/endpoints/agreement-documents/unlink-an-agreement-document"}]},{"group":"Price imports","pages":[{"title":"List price imports","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/price-imports","href":"/api-reference/endpoints/agreement-price-imports/list-price-imports"},{"title":"Get a price import","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/price-imports/{import_id}","href":"/api-reference/endpoints/agreement-price-imports/get-a-price-import"},{"title":"Get a link to download the rows a price import extracted","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agreements/{id}/price-imports/{import_id}/download","href":"/api-reference/endpoints/agreement-price-imports/get-a-link-to-download-the-rows-a-price-import-extracted"},{"title":"Import prices from documents","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/price-imports","href":"/api-reference/endpoints/agreement-price-imports/import-prices-from-documents"}]}]},{"group":"Alerts","pages":[{"title":"List alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/alerts","href":"/api-reference/endpoints/alerts/list-alerts"},{"title":"Total alert amounts, overall or per supplier, agreement, topic or month","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/alerts/metrics","href":"/api-reference/endpoints/alerts/total-alert-amounts-overall-or-per-supplier-agreement-topic-or-month"},{"title":"Get an alert","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/alerts/{id}","href":"/api-reference/endpoints/alerts/get-an-alert"},{"title":"List alert topics","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/alert-topics","href":"/api-reference/endpoints/alerts/list-alert-topics"},{"title":"Get an alert topic","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/alert-topics/{id}","href":"/api-reference/endpoints/alerts/get-an-alert-topic"},{"title":"Export selected alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/alerts/export","href":"/api-reference/endpoints/alerts/export-selected-alerts"},{"title":"Get a topic proposal","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/alert-topic-proposals/{id}","href":"/api-reference/endpoints/alerts/get-a-topic-proposal"},{"title":"Create an alert","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/alerts","href":"/api-reference/endpoints/alerts/create-an-alert"},{"title":"Create an alert topic","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/alert-topics","href":"/api-reference/endpoints/alerts/create-an-alert-topic"},{"title":"Update alerts: confirm, mark as false alarm, skip, move back to review, add to or remove from a claim, move to another topic","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/alerts/update","href":"/api-reference/endpoints/alerts/update-alerts:-confirm-mark-as-false-alarm-skip-move-back-to-review-add-to-or-remove-from-a-claim-move-to-another-topic"},{"title":"Delete selected alerts","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/alerts/delete","href":"/api-reference/endpoints/alerts/delete-selected-alerts"},{"title":"Categorize an agreement's alerts","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agreements/{id}/alert-topics/reconcile","href":"/api-reference/endpoints/alerts/categorize-an-agreements-alerts"},{"title":"Propose a topic merge or split","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/alert-topic-proposals","href":"/api-reference/endpoints/alerts/propose-a-topic-merge-or-split"},{"title":"Apply a topic proposal","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/alert-topic-proposals/{id}/apply","href":"/api-reference/endpoints/alerts/apply-a-topic-proposal"},{"title":"Update an alert: edit, confirm, mark as false alarm, skip, move back to review, add to a claim, move to another topic","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/alerts/{id}","href":"/api-reference/endpoints/alerts/update-an-alert:-edit-confirm-mark-as-false-alarm-skip-move-back-to-review-add-to-a-claim-move-to-another-topic"},{"title":"Edit an alert topic","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/alert-topics/{id}","href":"/api-reference/endpoints/alerts/edit-an-alert-topic"},{"title":"Delete an alert topic","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/alert-topics/{id}","href":"/api-reference/endpoints/alerts/delete-an-alert-topic"}]},{"group":"Claims","pages":[{"title":"List claims","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/claims","href":"/api-reference/endpoints/claims/list-claims"},{"title":"Get claim and recovery totals","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/claims/metrics","href":"/api-reference/endpoints/claims/get-claim-and-recovery-totals"},{"title":"Get a claim","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/claims/{id}","href":"/api-reference/endpoints/claims/get-a-claim"},{"title":"List claim recoveries","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/claims/{id}/recoveries","href":"/api-reference/endpoints/claims/list-claim-recoveries"},{"title":"List credit notes that may answer a claim","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/claims/{id}/credit-note-suggestions","href":"/api-reference/endpoints/claims/list-credit-notes-that-may-answer-a-claim"},{"title":"Export a claim","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/claims/{id}/export","href":"/api-reference/endpoints/claims/export-a-claim"},{"title":"List claim invoice documents","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/claims/{id}/documents","href":"/api-reference/endpoints/claims/list-claim-invoice-documents"},{"title":"Create a claim","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/claims","href":"/api-reference/endpoints/claims/create-a-claim"},{"title":"Preview adding alerts to a claim","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/claims/alerts/preview","href":"/api-reference/endpoints/claims/preview-adding-alerts-to-a-claim"},{"title":"Delete a claim","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/claims/{id}","href":"/api-reference/endpoints/claims/delete-a-claim"},{"title":"Record a claim recovery","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/claims/{id}/recoveries","href":"/api-reference/endpoints/claims/record-a-claim-recovery"},{"title":"Update a claim","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/claims/{id}","href":"/api-reference/endpoints/claims/update-a-claim"},{"title":"Update a recovery","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/recoveries/{id}","href":"/api-reference/endpoints/claims/update-a-recovery"},{"title":"Delete a recovery","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/recoveries/{id}","href":"/api-reference/endpoints/claims/delete-a-recovery"}]},{"group":"Compliance checks","pages":[{"title":"List compliance checks","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/compliance-checks","href":"/api-reference/endpoints/compliance-checks/list-compliance-checks"},{"title":"Get a compliance check","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/compliance-checks/{id}","href":"/api-reference/endpoints/compliance-checks/get-a-compliance-check"},{"title":"List compliance check findings","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/compliance-checks/{id}/findings","href":"/api-reference/endpoints/compliance-checks/list-compliance-check-findings"},{"title":"Get a compliance check transcript","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/compliance-checks/{id}/transcript","href":"/api-reference/endpoints/compliance-checks/get-a-compliance-check-transcript"},{"title":"Start compliance checks","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/checks","href":"/api-reference/endpoints/compliance-checks/start-compliance-checks"},{"title":"Reset compliance checks","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/checks/reset","href":"/api-reference/endpoints/compliance-checks/reset-compliance-checks"}]},{"group":"Documents","pages":[{"title":"List documents","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/documents","href":"/api-reference/endpoints/documents/list-documents"},{"title":"Get document metadata","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/documents/{id}","href":"/api-reference/endpoints/documents/get-document-metadata"},{"title":"Get a link to download a document","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/documents/{id}/download","href":"/api-reference/endpoints/documents/get-a-link-to-download-a-document"},{"title":"Read the text of a document or agreement contract","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/documents/{id}/text","href":"/api-reference/endpoints/documents/read-the-text-of-a-document-or-agreement-contract"},{"title":"Download selected documents as a ZIP archive","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/documents/download-archive","href":"/api-reference/endpoints/documents/download-selected-documents-as-a-zip-archive"},{"title":"Get a link to upload a document","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/documents/upload","href":"/api-reference/endpoints/documents/get-a-link-to-upload-a-document"},{"title":"Upload a document","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/documents/upload/direct","href":"/api-reference/endpoints/documents/upload-a-document"},{"title":"Extract document text","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/documents/{id}/extract","href":"/api-reference/endpoints/documents/extract-document-text"},{"title":"Index an agreement document","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/documents/{id}/index","href":"/api-reference/endpoints/documents/index-an-agreement-document"},{"title":"Search what the agreement text says about a subject","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/documents/search","href":"/api-reference/endpoints/documents/search-what-the-agreement-text-says-about-a-subject"},{"title":"Delete unused documents","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/documents/delete","href":"/api-reference/endpoints/documents/delete-unused-documents"}]},{"group":"Invoice imports","pages":[{"title":"List invoice imports","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/imports","href":"/api-reference/endpoints/invoice-imports/list-invoice-imports"},{"title":"Get an invoice import","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/imports/{id}","href":"/api-reference/endpoints/invoice-imports/get-an-invoice-import"},{"title":"Import an invoice from documents","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/imports","href":"/api-reference/endpoints/invoice-imports/import-an-invoice-from-documents"},{"title":"Import as an invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/imports/{id}/import-as-invoice","href":"/api-reference/endpoints/invoice-imports/import-as-an-invoice"},{"title":"Choose the supplier of an import","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/imports/{id}/letter-creditor","href":"/api-reference/endpoints/invoice-imports/choose-the-supplier-of-an-import"},{"title":"Remove selected imports from history","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/imports/delete","href":"/api-reference/endpoints/invoice-imports/remove-selected-imports-from-history"},{"title":"List what was received and needs attention","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/intake/needs-attention","href":"/api-reference/endpoints/invoice-imports/list-what-was-received-and-needs-attention"},{"title":"Mark needs-attention items as handled","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/intake/needs-attention/handle","href":"/api-reference/endpoints/invoice-imports/mark-needs-attention-items-as-handled"},{"title":"Reopen handled needs-attention items","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/intake/needs-attention/reopen","href":"/api-reference/endpoints/invoice-imports/reopen-handled-needs-attention-items"},{"title":"Report needs-attention items to Watchdog support","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/intake/needs-attention/report","href":"/api-reference/endpoints/invoice-imports/report-needs-attention-items-to-watchdog-support"},{"title":"List received invoice emails","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/intake/emails","href":"/api-reference/endpoints/invoice-imports/list-received-invoice-emails"}]},{"group":"Invoices","pages":[{"title":"Total invoice spend, overall or per supplier, recipient or month","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/metrics","href":"/api-reference/endpoints/invoices/total-invoice-spend-overall-or-per-supplier-recipient-or-month"},{"title":"Count active invoices in each lifecycle phase and status","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/lifecycle-counts","href":"/api-reference/endpoints/invoices/count-active-invoices-in-each-lifecycle-phase-and-status"},{"title":"Find what was paid for a product across invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/line-items","href":"/api-reference/endpoints/invoices/find-what-was-paid-for-a-product-across-invoices"},{"title":"Export selected invoices as CSV","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/export","href":"/api-reference/endpoints/invoices/export-selected-invoices-as-csv"},{"title":"List the columns of the invoice export","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/export/columns","href":"/api-reference/endpoints/invoices/list-the-columns-of-the-invoice-export"},{"title":"Find invoices by supplier, number, date or status","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices","href":"/api-reference/endpoints/invoices/find-invoices-by-supplier-number-date-or-status"},{"title":"Get an invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}","href":"/api-reference/endpoints/invoices/get-an-invoice"},{"title":"Get an invoice's checks","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/checks","href":"/api-reference/endpoints/invoices/get-an-invoices-checks"},{"title":"List invoice line items","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/line-items","href":"/api-reference/endpoints/invoices/list-invoice-line-items"},{"title":"List linked invoices of every category","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/matched-invoices","href":"/api-reference/endpoints/invoices/list-linked-invoices-of-every-category"},{"title":"List invoice documents","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/documents","href":"/api-reference/endpoints/invoices/list-invoice-documents"},{"title":"Get an invoice as a PDF","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/pdf","href":"/api-reference/endpoints/invoices/get-an-invoice-as-a-pdf"},{"title":"List matched agreements","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/agreements","href":"/api-reference/endpoints/invoices/list-matched-agreements"},{"title":"Get invoice coding","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/coding","href":"/api-reference/endpoints/invoices/get-invoice-coding"},{"title":"List invoice reminders","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/reminders","href":"/api-reference/endpoints/invoices/list-invoice-reminders"},{"title":"Link or unlink a letter claim and its original invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/letter-claims/{claim_id}/link","href":"/api-reference/endpoints/invoices/link-or-unlink-a-letter-claim-and-its-original-invoice"},{"title":"Import an original included in a letter PDF","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/letter-claims/{claim_id}/import-original","href":"/api-reference/endpoints/invoices/import-an-original-included-in-a-letter-pdf"},{"title":"Find a letter original in Tripletex","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/letter-claims/{claim_id}/lookup-original","href":"/api-reference/endpoints/invoices/find-a-letter-original-in-tripletex"},{"title":"Preview rereading an invoice or letter","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/classification/preview","href":"/api-reference/endpoints/invoices/preview-rereading-an-invoice-or-letter"},{"title":"Reread an invoice or letter with a corrected interpretation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/classification","href":"/api-reference/endpoints/invoices/reread-an-invoice-or-letter-with-a-corrected-interpretation"},{"title":"Choose an invoice's company","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/invoices/{id}/company","href":"/api-reference/endpoints/invoices/choose-an-invoices-company"},{"title":"Get invoice readiness","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/readiness","href":"/api-reference/endpoints/invoices/get-invoice-readiness"},{"title":"Create an invoice from structured data","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices","href":"/api-reference/endpoints/invoices/create-an-invoice-from-structured-data"},{"title":"Restore an invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/restore","href":"/api-reference/endpoints/invoices/restore-an-invoice"},{"title":"Send an invoice to the accounting system","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/transfer","href":"/api-reference/endpoints/invoices/send-an-invoice-to-the-accounting-system"},{"title":"Book a sent invoice in the accounting system","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/book","href":"/api-reference/endpoints/invoices/book-a-sent-invoice-in-the-accounting-system"},{"title":"Add or remove invoice approvers","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/update-approvers","href":"/api-reference/endpoints/invoices/add-or-remove-invoice-approvers"},{"title":"Set an invoice's approval steps","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/invoices/{id}/approval-steps","href":"/api-reference/endpoints/invoices/set-an-invoices-approval-steps"},{"title":"Preview who cannot see invoices before assigning approvers","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/approver-visibility","href":"/api-reference/endpoints/invoices/preview-who-cannot-see-invoices-before-assigning-approvers"},{"title":"Add a matched invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/matched-invoices","href":"/api-reference/endpoints/invoices/add-a-matched-invoice"},{"title":"Refresh an invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/refresh","href":"/api-reference/endpoints/invoices/refresh-an-invoice"},{"title":"Attach a document to an invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/documents","href":"/api-reference/endpoints/invoices/attach-a-document-to-an-invoice"},{"title":"Suggest invoice coding","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/coding/suggest","href":"/api-reference/endpoints/invoices/suggest-invoice-coding"},{"title":"Clear invoice coding","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/coding/clear","href":"/api-reference/endpoints/invoices/clear-invoice-coding"},{"title":"Make a document the primary invoice document","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/invoices/{id}/documents/{document_id}","href":"/api-reference/endpoints/invoices/make-a-document-the-primary-invoice-document"},{"title":"Update an invoice, or send, approve, hold, close or mark it paid","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/invoices/{id}","href":"/api-reference/endpoints/invoices/update-an-invoice-or-send-approve-hold-close-or-mark-it-paid"},{"title":"Code invoice lines","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/invoices/{id}/coding","href":"/api-reference/endpoints/invoices/code-invoice-lines"},{"title":"Soft-delete an invoice","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/invoices/{id}","href":"/api-reference/endpoints/invoices/soft-delete-an-invoice"},{"title":"Remove a matched invoice","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/invoices/{id}/matched-invoices/{match_id}","href":"/api-reference/endpoints/invoices/remove-a-matched-invoice"},{"title":"Unlink an invoice document","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/invoices/{id}/documents/{document_id}","href":"/api-reference/endpoints/invoices/unlink-an-invoice-document"}]},{"group":"Purchase orders","pages":[{"title":"List purchase orders","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders","href":"/api-reference/endpoints/purchase-orders/list-purchase-orders"},{"title":"Count purchase orders","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/metrics","href":"/api-reference/endpoints/purchase-orders/count-purchase-orders"},{"title":"Count purchase orders without totals","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/counts","href":"/api-reference/endpoints/purchase-orders/count-purchase-orders-without-totals"},{"title":"Get a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/{id}","href":"/api-reference/endpoints/purchase-orders/get-a-purchase-order"},{"title":"List purchase order revisions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/{id}/revisions","href":"/api-reference/endpoints/purchase-orders/list-purchase-order-revisions"},{"title":"Check a purchase order against its agreement","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/{id}/agreement-check","href":"/api-reference/endpoints/purchase-orders/check-a-purchase-order-against-its-agreement"},{"title":"List an agreement's prices as purchase order lines","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/agreement-prices","href":"/api-reference/endpoints/purchase-orders/list-an-agreements-prices-as-purchase-order-lines"},{"title":"Export a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/{id}/export","href":"/api-reference/endpoints/purchase-orders/export-a-purchase-order"},{"title":"Create a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders","href":"/api-reference/endpoints/purchase-orders/create-a-purchase-order"},{"title":"Preview a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/preview","href":"/api-reference/endpoints/purchase-orders/preview-a-purchase-order"},{"title":"Preview a purchase order's references","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/preview/references","href":"/api-reference/endpoints/purchase-orders/preview-a-purchase-orders-references"},{"title":"Update a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/purchase-orders/{id}","href":"/api-reference/endpoints/purchase-orders/update-a-purchase-order"},{"title":"Add or remove purchase order approvers","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/{id}/update-approvers","href":"/api-reference/endpoints/purchase-orders/add-or-remove-purchase-order-approvers"},{"title":"Record goods received","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/{id}/receipts","href":"/api-reference/endpoints/purchase-orders/record-goods-received"},{"title":"Push a purchase order to an accounting system","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/{id}/pushes","href":"/api-reference/endpoints/purchase-orders/push-a-purchase-order-to-an-accounting-system"},{"title":"Delete a draft purchase order","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/purchase-orders/{id}","href":"/api-reference/endpoints/purchase-orders/delete-a-draft-purchase-order"},{"group":"Documents","pages":[{"title":"List purchase order documents","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/{id}/documents","href":"/api-reference/endpoints/purchase-order-documents/list-purchase-order-documents"},{"title":"Attach a document to a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/{id}/documents","href":"/api-reference/endpoints/purchase-order-documents/attach-a-document-to-a-purchase-order"},{"title":"Remove a document from a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/purchase-orders/{id}/documents/{document_id}","href":"/api-reference/endpoints/purchase-order-documents/remove-a-document-from-a-purchase-order"}]},{"group":"Supplier email","pages":[{"title":"Read purchase order correspondence","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/{id}/correspondence","href":"/api-reference/endpoints/purchase-orders/read-purchase-order-correspondence"},{"title":"Revoke the purchase order reply address","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/purchase-orders/{id}/reply-address","href":"/api-reference/endpoints/purchase-orders/revoke-the-purchase-order-reply-address"}]},{"group":"Imports","pages":[{"title":"Get a purchase order import","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/imports/{id}","href":"/api-reference/endpoints/purchase-order-imports/get-a-purchase-order-import"},{"title":"Create a purchase order from documents","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/imports","href":"/api-reference/endpoints/purchase-order-imports/create-a-purchase-order-from-documents"}]},{"group":"Invoices","pages":[{"title":"List invoices related to a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/purchase-orders/{id}/invoices","href":"/api-reference/endpoints/purchase-orders/list-invoices-related-to-a-purchase-order"},{"title":"Reconcile invoices referencing a purchase order","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/purchase-orders/{id}/invoices/refresh","href":"/api-reference/endpoints/purchase-orders/reconcile-invoices-referencing-a-purchase-order"},{"title":"List invoice purchase order decisions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/purchase-orders","href":"/api-reference/endpoints/invoices/list-invoice-purchase-order-decisions"},{"title":"Accept a purchase order for an invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/purchase-orders","href":"/api-reference/endpoints/invoices/accept-a-purchase-order-for-an-invoice"},{"title":"Reject or unlink an invoice purchase order","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/invoices/{id}/purchase-orders/{poId}","href":"/api-reference/endpoints/invoices/reject-or-unlink-an-invoice-purchase-order"},{"title":"Reset purchase orders to automatic matching","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{id}/purchase-orders/reset","href":"/api-reference/endpoints/invoices/reset-purchase-orders-to-automatic-matching"},{"title":"List which purchase order each invoice line bills","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{id}/purchase-orders/allocations","href":"/api-reference/endpoints/invoices/list-which-purchase-order-each-invoice-line-bills"},{"title":"Assign whole invoice lines to purchase orders","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/invoices/{id}/purchase-orders/allocations","href":"/api-reference/endpoints/invoices/assign-whole-invoice-lines-to-purchase-orders"}]}]},{"group":"Suppliers and recipients","pages":[{"title":"List suppliers or recipients","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/parties","href":"/api-reference/endpoints/suppliers-and-recipients/list-suppliers-or-recipients"},{"title":"Get a supplier or recipient","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/parties/{id}","href":"/api-reference/endpoints/suppliers-and-recipients/get-a-supplier-or-recipient"},{"title":"Create a supplier or recipient","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parties","href":"/api-reference/endpoints/suppliers-and-recipients/create-a-supplier-or-recipient"},{"title":"Find a supplier or recipient by organization or VAT number","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parties/match","href":"/api-reference/endpoints/suppliers-and-recipients/find-a-supplier-or-recipient-by-organization-or-vat-number"},{"title":"Update a supplier or recipient","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/parties/{id}","href":"/api-reference/endpoints/suppliers-and-recipients/update-a-supplier-or-recipient"},{"title":"List likely duplicate suppliers or recipients","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/parties/duplicates","href":"/api-reference/endpoints/suppliers-and-recipients/list-likely-duplicate-suppliers-or-recipients"},{"title":"Export suppliers or recipients","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/parties/export","href":"/api-reference/endpoints/suppliers-and-recipients/export-suppliers-or-recipients"},{"title":"Merge suppliers or recipients","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parties/{id}/merge","href":"/api-reference/endpoints/suppliers-and-recipients/merge-suppliers-or-recipients"},{"title":"Delete unused suppliers or recipients","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parties/delete","href":"/api-reference/endpoints/suppliers-and-recipients/delete-unused-suppliers-or-recipients"},{"title":"List the accounting system's suppliers","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/parties/erp-suppliers","href":"/api-reference/endpoints/suppliers-and-recipients/list-the-accounting-systems-suppliers"},{"title":"List a supplier's links to the accounting system","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/parties/{id}/erp-links","href":"/api-reference/endpoints/suppliers-and-recipients/list-a-suppliers-links-to-the-accounting-system"},{"title":"Link a supplier to the accounting system","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parties/{id}/erp-links","href":"/api-reference/endpoints/suppliers-and-recipients/link-a-supplier-to-the-accounting-system"},{"title":"Create a supplier in the accounting system","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parties/{id}/erp-links/create","href":"/api-reference/endpoints/suppliers-and-recipients/create-a-supplier-in-the-accounting-system"},{"title":"Unlink a supplier from the accounting system","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parties/{id}/erp-links/unlink","href":"/api-reference/endpoints/suppliers-and-recipients/unlink-a-supplier-from-the-accounting-system"}]},{"group":"Integrations","pages":[{"title":"List integration providers","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integration-providers","href":"/api-reference/endpoints/integrations/list-integration-providers"},{"title":"List accounting integrations and their health","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integrations","href":"/api-reference/endpoints/integrations/list-accounting-integrations-and-their-health"},{"title":"Create an integration","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/integrations","href":"/api-reference/endpoints/integrations/create-an-integration"},{"title":"Test an integration","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/integrations/test","href":"/api-reference/endpoints/integrations/test-an-integration"},{"title":"List the provider’s ledger accounts","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/integrations/ledger-accounts","href":"/api-reference/endpoints/integrations/list-the-provider’s-ledger-accounts"},{"title":"Retrieve an integration","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integrations/{id}","href":"/api-reference/endpoints/integrations/retrieve-an-integration"},{"title":"Update an integration","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/integrations/{id}","href":"/api-reference/endpoints/integrations/update-an-integration"},{"title":"Delete an integration","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/integrations/{id}","href":"/api-reference/endpoints/integrations/delete-an-integration"},{"title":"List the provider’s suppliers","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integrations/{id}/suppliers","href":"/api-reference/endpoints/integrations/list-the-provider’s-suppliers"},{"title":"List the provider’s companies","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integrations/{id}/companies","href":"/api-reference/endpoints/integrations/list-the-provider’s-companies"},{"title":"List the connection's companies","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integrations/{id}/company-links","href":"/api-reference/endpoints/integrations/list-the-connections-companies"},{"title":"Link a connection's company","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/integrations/{id}/company-links/{link_id}","href":"/api-reference/endpoints/integrations/link-a-connections-company"},{"title":"Make workspace companies of a connection's companies","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/integrations/{id}/company-links/create-companies","href":"/api-reference/endpoints/integrations/make-workspace-companies-of-a-connections-companies"},{"title":"Start a sync","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/integrations/{id}/syncs","href":"/api-reference/endpoints/integrations/start-a-sync"},{"title":"List syncs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integrations/{id}/syncs","href":"/api-reference/endpoints/integrations/list-syncs"},{"title":"Retrieve a sync","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/integrations/{id}/syncs/{sync_id}","href":"/api-reference/endpoints/integrations/retrieve-a-sync"},{"title":"Check the sign-in sending goes through","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/integrations/{id}/sign-in/check","href":"/api-reference/endpoints/integrations/check-the-sign-in-sending-goes-through"},{"title":"Remove the sign-in sending goes through","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/integrations/{id}/sign-in","href":"/api-reference/endpoints/integrations/remove-the-sign-in-sending-goes-through"},{"title":"List ledger accounts","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/ledger-accounts","href":"/api-reference/endpoints/integrations/list-ledger-accounts"},{"title":"List VAT codes","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/vat-codes","href":"/api-reference/endpoints/integrations/list-vat-codes"},{"title":"List dimensions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/dimensions","href":"/api-reference/endpoints/integrations/list-dimensions"},{"title":"List dimension values","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/dimension-values","href":"/api-reference/endpoints/integrations/list-dimension-values"},{"title":"List accounting sources","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/accounting-sources","href":"/api-reference/endpoints/integrations/list-accounting-sources"}]},{"group":"Workflow runs","pages":[{"title":"List workflow runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workflow-runs","href":"/api-reference/endpoints/workflow-runs/list-workflow-runs"},{"title":"Get a workflow run","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workflow-runs/{id}","href":"/api-reference/endpoints/workflow-runs/get-a-workflow-run"},{"title":"List workflow run items","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workflow-runs/{id}/items","href":"/api-reference/endpoints/workflow-runs/list-workflow-run-items"},{"title":"Cancel one workflow item","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workflow-runs/{id}/items/{item_id}/cancel","href":"/api-reference/endpoints/workflow-runs/cancel-one-workflow-item"},{"title":"Cancel a workflow run","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workflow-runs/{id}/cancel","href":"/api-reference/endpoints/workflow-runs/cancel-a-workflow-run"},{"title":"Retry a workflow run","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workflow-runs/{id}/retry","href":"/api-reference/endpoints/workflow-runs/retry-a-workflow-run"}]},{"group":"Activity and comments","pages":[{"title":"Read an entity activity timeline","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/activity","href":"/api-reference/endpoints/activity/read-an-entity-activity-timeline"},{"title":"Get a comment","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/comments/{id}","href":"/api-reference/endpoints/comments/get-a-comment"},{"title":"List comment replies","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/comments/{id}/replies","href":"/api-reference/endpoints/comments/list-comment-replies"},{"title":"Create a comment or reply","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/comments","href":"/api-reference/endpoints/comments/create-a-comment-or-reply"},{"title":"Edit your comment","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/comments/{id}","href":"/api-reference/endpoints/comments/edit-your-comment"},{"title":"Delete your comment","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/comments/{id}","href":"/api-reference/endpoints/comments/delete-your-comment"}]}]}]}]},{"language":"no","footer":{"links":[{"header":"Watchdog","items":[{"label":"Nettside","href":"https://watchdog.no"},{"label":"Kundestøtte","href":"mailto:support@watchdog.no"}]}]},"navbar":{"links":[{"href":"mailto:support@watchdog.no","label":"Kundestøtte"}],"primary":{"type":"button","label":"Åpne Watchdog","href":"https://app.watchdog.no"}},"pages":[{"title":"no","href":"/no"}]}]},"basePath":"","title":"Update an approval rule - Watchdog Help Center","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-jJHA3WSo.js","utils-DbZn3Mjn.js","cloneDeep-CnBnaSyy.js","_Uint8Array-CMQtTgBR.js","isObject-FP1Yky1u.js","utils-Bl2DvzOJ.js","addUniqueKeysToSchema-BwOLo9p1.js","snippetPresets-BBiPpKa-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-C0px4Tml.js","isEqual-zAyttAAO.js","usePlaygroundInputsStore-Dell6dGw.js","shallow-0VKqkSqN.js","getApiPlaygroundDisplay-CP_ctPEB.js","CodeSnippet-5L35ic0s.js","CodeSnippets-DOXbNhJw.js","Page-DRLI_2Ue.js","getPastedJson-VhzT9m2P.js","icon-CD8_AtCO.js","MethodPill-DGgOMftG.js","DuplicateIcon-DZ6A_EtN.js","createIcon-DUl4oM5f.js","DynamicMarkdown-BGHukeRM.js","SectionHeading-ChrEUs8u.js","axios-vUo_bRtp.js","Markdown-Dj-na-_-.js","dist-C5gjFYHe.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-DEBW87tT.js"]}