{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid, revoked, or expired."
}
}
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the required scope."
}
}
{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}
{
"error": {
"code": "validation_failed",
"message": "The attention field is required.",
"fields": {
"attention": [
"The attention field is required."
]
}
}
}
Works
Update a work
Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply.
Completed works can only be updated if the workspace allows it. Requires the works:write scope.
{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid, revoked, or expired."
}
}
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the required scope."
}
}
{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}
{
"error": {
"code": "validation_failed",
"message": "The attention field is required.",
"fields": {
"attention": [
"The attention field is required."
]
}
}
}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BeanRails","colors":{"primary":"#e63946","light":"#f87171","dark":"#e63946"},"logo":{"light":"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/logo/beanrails.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=59834d15582b2afc555f9f332844b53c","dark":"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/logo/beanrails.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=59834d15582b2afc555f9f332844b53c"},"favicon":"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/favicon.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=f3ae0fa7813d867f2ea9c6a3b88d5153","navbar":{"links":[{"href":"mailto:support@beanrails.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.beanrails.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bean-rails","hasAudioNarration":false,"actualSubdomain":"bean-rails","customDomains":["api-docs.beanrails.com"],"gitSource":{"type":"github","owner":"alex-shum-cw","repo":"beanrails-public-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae18dc2b52ab2decbda34f9"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae19c7157e72f17a84a914d","collectionId":"1ae7657f-aee0-41b9-ab88-3c6d0a1ef004","liveDeploymentHistoryId":"6ae19c7157e72f17a84a914d","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae19de30ab3938238c89d46","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"API reference","count":26},{"language":"default","tag":"Works","count":6},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Contacts","count":4},{"language":"default","tag":"Invoices","count":4},{"language":"default","tag":"Quotations","count":4},{"language":"default","tag":"Essentials","count":3},{"language":"default","tag":"Contact addresses","count":3},{"language":"default","tag":"Invoice payments","count":3},{"language":"default","tag":"Getting started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/works/update-a-work","slug":"/api-reference/works/update-a-work","pageMetadata":{"title":"Update a work","description":"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply.\nCompleted works can only be updated if the workspace allows it. Requires the `works:write` scope.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}","href":"/api-reference/works/update-a-work","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: [\"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply.\\nCompleted works can only be updated if the workspace allows it. Requires the \", _jsx(_components.code, {\n children: \"works:write\"\n }), \" scope.\"]\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 a work","description":"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply.\nCompleted works can only be updated if the workspace allows it. Requires the `works:write` scope.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}","href":"/api-reference/works/update-a-work","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateWork","tags":["Works"],"summary":"Update a work","description":"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply.\nCompleted works can only be updated if the workspace allows it. Requires the `works:write` scope.\n","requestBody":"7d9bcd9c-d55c-47a6-979d-38d29452c7ef","responses":{"200":"6363c4e7-0a32-4aa7-97f7-1d7fbfba3204","401":"1e675a9a-eb4c-4413-abb8-04ba89bdd03a","403":"ace5e943-6be7-491c-870a-df49c261c683","404":"c30305fa-1ec7-444c-8b70-de76c67a10b9","422":"c87cc1c2-00a5-4391-9fa5-e0b019881a9a","429":"574f3f60-c2f5-447d-96c6-fe43ba5bef0b"},"method":"put","type":"path","servers":["154004c9-e4f6-442a-8e2b-c0d42ed2a198"],"security":["0ecb1668-118c-4938-a713-ce130e4d64dd"],"path":"/works/{id}","baseUrlOptions":["https://{host}/api/public/v1"],"title":"Update a work","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"4151d5ea-46a2-4137-b8a4-fa2e926d22b8":{"name":"id","in":"path","required":true,"description":"The record ID.","schema":{"type":"integer","isRequired":true,"description":"The record ID.","uniqueKey":"","typeLabel":"integer"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["work_date","attention","address1"],"properties":{"work_date":{"type":"string","format":"date","description":"`YYYY-MM-DD`, in the workspace timezone.","isRequired":true,"uniqueKey":"work_date","typeLabel":"string\u003cdate>"},"attention":{"type":"string","maxLength":255,"description":"The person to see on site.","isRequired":true,"uniqueKey":"attention","typeLabel":"string"},"address1":{"type":"string","maxLength":255,"isRequired":true,"uniqueKey":"address1","typeLabel":"string"},"time_window_from":{"type":"string","description":"`HH:mm`.","uniqueKey":"time_window_from","typeLabel":"string"},"time_window_to":{"type":"string","description":"`HH:mm`, after `time_window_from`.","uniqueKey":"time_window_to","typeLabel":"string"},"work_number":{"type":"string","description":"Required only when the workspace does not number works automatically.","uniqueKey":"work_number","typeLabel":"string"},"contact_id":{"type":"integer","uniqueKey":"contact_id","typeLabel":"integer"},"vehicle_id":{"type":"integer","uniqueKey":"vehicle_id","typeLabel":"integer"},"zone_id":{"type":"integer","uniqueKey":"zone_id","typeLabel":"integer"},"service_type":{"type":"string","enum":["service","engineering"],"uniqueKey":"service_type","typeLabel":"enum\u003cstring>"},"email":{"type":"string","uniqueKey":"email","typeLabel":"string"},"company_name":{"type":"string","uniqueKey":"company_name","typeLabel":"string"},"mobile_no":{"type":"string","uniqueKey":"mobile_no","typeLabel":"string"},"office_no":{"type":"string","uniqueKey":"office_no","typeLabel":"string"},"address2":{"type":"string","uniqueKey":"address2","typeLabel":"string"},"city":{"type":"string","uniqueKey":"city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"state","typeLabel":"string"},"postcode":{"type":"string","uniqueKey":"postcode","typeLabel":"string"},"country":{"type":"string","description":"Two letter country code.","uniqueKey":"country","typeLabel":"string"},"user_lat":{"type":"number","uniqueKey":"user_lat","typeLabel":"number"},"user_lng":{"type":"number","uniqueKey":"user_lng","typeLabel":"number"},"work_price":{"type":"number","uniqueKey":"work_price","typeLabel":"number"},"instructions":{"type":"string","uniqueKey":"instructions","typeLabel":"string"},"is_collect_work_price":{"type":"boolean","uniqueKey":"is_collect_work_price","typeLabel":"boolean"},"is_auto_reschedule":{"type":"boolean","uniqueKey":"is_auto_reschedule","typeLabel":"boolean"},"vehicles":{"type":"array","items":{"type":"integer","uniqueKey":"vehicles.items.[INDEX]","typeLabel":"integer"},"description":"Additional helper vehicle IDs.","uniqueKey":"vehicles","typeLabel":"integer[]"},"items":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"id":{"type":"integer","description":"Include to update an existing item on work update. Items you leave out are removed.","uniqueKey":"\\items.items.[INDEX].id","typeLabel":"integer"},"sku":{"type":"string","uniqueKey":"\\items.items.[INDEX].sku","typeLabel":"string"},"description":{"type":"string","uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string"},"quantity":{"type":"number","uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"number"},"unit_of_measure":{"type":"string","uniqueKey":"\\items.items.[INDEX].unit_of_measure","typeLabel":"string"},"unit_price":{"type":"number","uniqueKey":"\\items.items.[INDEX].unit_price","typeLabel":"number"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"work_date":"2023-12-25","attention":"\u003cstring>","address1":"\u003cstring>","time_window_from":"\u003cstring>","time_window_to":"\u003cstring>","work_number":"\u003cstring>","contact_id":123,"vehicle_id":123,"zone_id":123,"email":"\u003cstring>","company_name":"\u003cstring>","mobile_no":"\u003cstring>","office_no":"\u003cstring>","address2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postcode":"\u003cstring>","country":"\u003cstring>","user_lat":123,"user_lng":123,"work_price":123,"instructions":"\u003cstring>","is_collect_work_price":true,"is_auto_reschedule":true,"vehicles":[123],"items":[{"name":"\u003cstring>","id":123,"sku":"\u003cstring>","description":"\u003cstring>","quantity":123,"unit_of_measure":"\u003cstring>","unit_price":123}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6363c4e7-0a32-4aa7-97f7-1d7fbfba3204":{"description":"The updated work.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"integer","uniqueKey":"data.id","typeLabel":"integer"},"work_number":{"type":"string","uniqueKey":"data.work_number","typeLabel":"string"},"work_date":{"type":"string","description":"The work date in the workspace timezone.","uniqueKey":"data.work_date","typeLabel":"string"},"time_window_from":{"oneOf":[{"type":"string","uniqueKey":"data.time_window_from.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.time_window_from.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.time_window_from","typeLabel":"string | null"},"time_window_to":{"oneOf":[{"type":"string","uniqueKey":"data.time_window_to.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.time_window_to.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.time_window_to","typeLabel":"string | null"},"status":{"type":"string","enum":["new","vehicle_assigned","in_progress","failed","cancelled","completed"],"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"status_name":{"oneOf":[{"type":"string","uniqueKey":"data.status_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.status_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.status_name","typeLabel":"string | null"},"service_type":{"oneOf":[{"type":"string","enum":["service","engineering",null],"uniqueKey":"data.service_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["service","engineering",null],"uniqueKey":"data.service_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.service_type","typeLabel":"enum\u003cstring> | null"},"contact_id":{"oneOf":[{"type":"integer","uniqueKey":"data.contact_id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.contact_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact_id","typeLabel":"integer | null"},"vehicle_id":{"oneOf":[{"type":"integer","uniqueKey":"data.vehicle_id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.vehicle_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vehicle_id","typeLabel":"integer | null"},"vehicle_name":{"oneOf":[{"type":"string","uniqueKey":"data.vehicle_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.vehicle_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vehicle_name","typeLabel":"string | null"},"zone_id":{"oneOf":[{"type":"integer","uniqueKey":"data.zone_id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.zone_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.zone_id","typeLabel":"integer | null"},"zone_name":{"oneOf":[{"type":"string","uniqueKey":"data.zone_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.zone_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.zone_name","typeLabel":"string | null"},"attention":{"type":"string","uniqueKey":"data.attention","typeLabel":"string"},"email":{"oneOf":[{"type":"string","uniqueKey":"data.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.email","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","uniqueKey":"data.company_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.company_name","typeLabel":"string | null"},"mobile_no":{"oneOf":[{"type":"string","uniqueKey":"data.mobile_no.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.mobile_no.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.mobile_no","typeLabel":"string | null"},"office_no":{"oneOf":[{"type":"string","uniqueKey":"data.office_no.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.office_no.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.office_no","typeLabel":"string | null"},"address1":{"type":"string","uniqueKey":"data.address1","typeLabel":"string"},"address2":{"oneOf":[{"type":"string","uniqueKey":"data.address2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","uniqueKey":"data.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.city","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","uniqueKey":"data.state.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.state","typeLabel":"string | null"},"postcode":{"oneOf":[{"type":"string","uniqueKey":"data.postcode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.postcode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.postcode","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"data.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.country","typeLabel":"string | null"},"instructions":{"oneOf":[{"type":"string","uniqueKey":"data.instructions.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.instructions","typeLabel":"string | null"},"work_price":{"oneOf":[{"type":"string","description":"Free text entered by the user, not a number.","uniqueKey":"data.work_price.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free text entered by the user, not a number.","uniqueKey":"data.work_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.work_price","typeLabel":"string | null"},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"integer","uniqueKey":"data.\\items.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].name","typeLabel":"string"},"sku":{"oneOf":[{"type":"string","uniqueKey":"data.\\items.items.[INDEX].sku.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].sku.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].sku","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].description","typeLabel":"string | null"},"quantity":{"oneOf":[{"type":"number","uniqueKey":"data.\\items.items.[INDEX].quantity.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].quantity","typeLabel":"number | null"},"unit_of_measure":{"oneOf":[{"type":"string","uniqueKey":"data.\\items.items.[INDEX].unit_of_measure.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].unit_of_measure.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].unit_of_measure","typeLabel":"string | null"},"unit_price":{"oneOf":[{"type":"number","uniqueKey":"data.\\items.items.[INDEX].unit_price.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].unit_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].unit_price","typeLabel":"number | null"}},"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.\\items","typeLabel":"object[]"},"created_at":{"type":"string","uniqueKey":"data.created_at","typeLabel":"string"},"updated_at":{"type":"string","uniqueKey":"data.updated_at","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":123,"work_number":"\u003cstring>","work_date":"\u003cstring>","time_window_from":"\u003cstring>","time_window_to":"\u003cstring>","status":"new","status_name":"\u003cstring>","service_type":"service","contact_id":123,"vehicle_id":123,"vehicle_name":"\u003cstring>","zone_id":123,"zone_name":"\u003cstring>","attention":"\u003cstring>","email":"\u003cstring>","company_name":"\u003cstring>","mobile_no":"\u003cstring>","office_no":"\u003cstring>","address1":"\u003cstring>","address2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postcode":"\u003cstring>","country":"\u003cstring>","instructions":"\u003cstring>","work_price":"\u003cstring>","items":[{"id":123,"name":"\u003cstring>","sku":"\u003cstring>","description":"\u003cstring>","quantity":123,"unit_of_measure":"\u003cstring>","unit_price":123}],"created_at":"\u003cstring>","updated_at":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"1e675a9a-eb4c-4413-abb8-04ba89bdd03a":{"description":"The API key is missing, invalid, revoked or expired.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A stable, machine readable code.","examples":["not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"invalid_api_key","message":"The API key is invalid, revoked, or expired."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_api_key","message":"The API key is invalid, revoked, or expired."}}}},"exampleType":"examples"}},"exampleType":"examples"},"ace5e943-6be7-491c-870a-df49c261c683":{"description":"The key lacks the required scope, the key owner's role no longer allows it, or the owner's account is suspended.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A stable, machine readable code.","examples":["not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"insufficient_scope","message":"This API key does not have the required scope."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"insufficient_scope","message":"This API key does not have the required scope."}}}},"exampleType":"examples"}},"exampleType":"examples"},"c30305fa-1ec7-444c-8b70-de76c67a10b9":{"description":"The record does not exist, or your key is not allowed to see it.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A stable, machine readable code.","examples":["not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"not_found","message":"The requested resource was not found."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"The requested resource was not found."}}}},"exampleType":"examples"}},"exampleType":"examples"},"c87cc1c2-00a5-4391-9fa5-e0b019881a9a":{"description":"The request body failed validation. `error.fields` lists the problems per field.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","fields"],"properties":{"code":{"type":"string","enum":["validation_failed"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"fields":{"type":"object","description":"Field names mapped to a list of messages.","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.fields.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.fields.additionalProperties","typeLabel":"string[]"},"isRequired":true,"uniqueKey":"error.fields","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"validation_failed","message":"The attention field is required.","fields":{"attention":["The attention field is required."]}}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_failed","message":"The attention field is required.","fields":{"attention":["The attention field is required."]}}}}},"exampleType":"examples"}},"exampleType":"examples"},"574f3f60-c2f5-447d-96c6-fe43ba5bef0b":{"description":"You exceeded the key's requests per minute. Wait for the number of seconds in the `Retry-After` header.","headers":{"Retry-After":{"description":"Seconds until you can retry.","schema":{"type":"integer"}}},"content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"0ecb1668-118c-4938-a713-ce130e4d64dd":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key created in BeanRails, for example `brk_live_...`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"154004c9-e4f6-442a-8e2b-c0d42ed2a198":{"url":"https://{host}/api/public/v1","description":"Public API v1","variables":{"host":{"default":"app.beanrails.com","description":"The host your BeanRails workspace is served from."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key created in BeanRails, for example `brk_live_...`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key created in BeanRails, for example `brk_live_...`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"bean-rails","siteName":"BeanRails","title":"Update a work - BeanRails","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T06:42:45.285Z","originalFileLocation":"api-reference/works/update-a-work.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply. Completed works can only be updated if the workspace allows it. Requires the works:write scope.\">\u003cmeta data-mint-head name=\"application-name\" content=\"BeanRails\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a work - BeanRails\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply. Completed works can only be updated if the workspace allows it. Requires the works:write scope.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BeanRails\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api-docs.beanrails.com/api-reference/works/update-a-work\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bean-rails.mintlify.app/_mintlify/api/og/v2?division=Works\u0026amp;title=Update+a+work\u0026amp;description=Updates+a+work.+Send+the+full+set+of+fields+you+want+the+work+to+have%3B+the+same+required-field+rules+as+creation+apply.%0ACompleted+works+can+only+be+updated+if+t\u0026amp;theme=984b51d104ebf20e438c23c4\u0026amp;signature=dd9f6da2f59bffbc98d6a0545f910393bb93b8ca79a52ff0637ed226b56f24cc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a work - BeanRails\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply. Completed works can only be updated if the workspace allows it. Requires the works:write scope.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bean-rails.mintlify.app/_mintlify/api/og/v2?division=Works\u0026amp;title=Update+a+work\u0026amp;description=Updates+a+work.+Send+the+full+set+of+fields+you+want+the+work+to+have%3B+the+same+required-field+rules+as+creation+apply.%0ACompleted+works+can+only+be+updated+if+t\u0026amp;theme=984b51d104ebf20e438c23c4\u0026amp;signature=dd9f6da2f59bffbc98d6a0545f910393bb93b8ca79a52ff0637ed226b56f24cc\">\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/bean-rails/zIzNo9L5TTMgVXBM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BeanRails\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e63946\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api-docs.beanrails.com/api-reference/works/update-a-work\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/works/update-a-work.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api-docs.beanrails.com/#organization\",\"name\":\"BeanRails\",\"url\":\"https://api-docs.beanrails.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/logo/beanrails.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=59834d15582b2afc555f9f332844b53c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api-docs.beanrails.com#website\",\"name\":\"BeanRails\",\"url\":\"https://api-docs.beanrails.com\",\"publisher\":{\"@id\":\"https://api-docs.beanrails.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work#webpage\",\"url\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work\",\"name\":\"Update a work\",\"description\":\"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply. Completed works can only be updated if the workspace allows it. Requires the works:write scope.\",\"dateModified\":\"2026-10-28T06:42:45.285Z\",\"isPartOf\":{\"@id\":\"https://api-docs.beanrails.com#website\"},\"breadcrumb\":{\"@id\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Works\",\"item\":\"https://api-docs.beanrails.com/api-reference/works/list-works\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update a work\",\"item\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work#apireference\",\"headline\":\"Update a work\",\"name\":\"Update a work\",\"description\":\"Updates a work. Send the full set of fields you want the work to have; the same required-field rules as creation apply. Completed works can only be updated if the workspace allows it. Requires the works:write scope.\",\"url\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work\",\"mainEntityOfPage\":{\"@id\":\"https://api-docs.beanrails.com/api-reference/works/update-a-work#webpage\"},\"dateModified\":\"2026-10-28T06:42:45.285Z\",\"publisher\":{\"@id\":\"https://api-docs.beanrails.com/#organization\"},\"isPartOf\":{\"@id\":\"https://api-docs.beanrails.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BeanRails\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"BeanRails","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Retrieve a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts/{id}","href":"/api-reference/contacts/retrieve-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml put /contacts/{id}","href":"/api-reference/contacts/update-a-contact"}]},{"group":"Contact addresses","pages":[{"title":"List a contact's addresses","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts/{contactId}/addresses","href":"/api-reference/contact-addresses/list-a-contacts-addresses"},{"title":"Add an address to a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml post /contacts/{contactId}/addresses","href":"/api-reference/contact-addresses/add-an-address-to-a-contact"},{"title":"Update a contact address","deprecated":null,"version":null,"openapi":"/openapi.yaml put /contacts/{contactId}/addresses/{id}","href":"/api-reference/contact-addresses/update-a-contact-address"}]},{"group":"Works","pages":[{"title":"List works","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works","href":"/api-reference/works/list-works"},{"title":"Create a work","deprecated":null,"version":null,"openapi":"/openapi.yaml post /works","href":"/api-reference/works/create-a-work"},{"title":"Retrieve a work","description":"Requires the `works:read` scope.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works/{id}","href":"/api-reference/works/retrieve-a-work"},{"title":"Update a work","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}","href":"/api-reference/works/update-a-work"},{"title":"Cancel or reopen a work","description":"Only two transitions are available through the API. Drivers move works through `in_progress` and `completed` in the mobile app.\n\n- `cancelled` cancels the work.\n- `vehicle_assigned` reopens a cancelled or failed work, or a completed one if the workspace allows restarting completed works. It returns to `new` if no vehicle is assigned.\n\nRequires the `works:write` scope.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}/status","href":"/api-reference/works/cancel-or-reopen-a-work"},{"title":"Reschedule a work","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}/schedule","href":"/api-reference/works/reschedule-a-work"}]},{"group":"Work PODs","pages":[{"title":"List proof of delivery records of a work","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works/{id}/pods","href":"/api-reference/work-pods/list-proof-of-delivery-records-of-a-work"},{"title":"Retrieve a proof of delivery record","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works/{id}/pods/{podId}","href":"/api-reference/work-pods/retrieve-a-proof-of-delivery-record"}]},{"group":"Invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Create an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoices","href":"/api-reference/invoices/create-an-invoice"},{"title":"Retrieve an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices/{id}","href":"/api-reference/invoices/retrieve-an-invoice"},{"title":"Change an invoice status","deprecated":null,"version":null,"openapi":"/openapi.yaml put /invoices/{id}/status","href":"/api-reference/invoices/change-an-invoice-status"}]},{"group":"Invoice payments","pages":[{"title":"List payments of an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices/{id}/payments","href":"/api-reference/invoice-payments/list-payments-of-an-invoice"},{"title":"Record a payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoices/{id}/payments","href":"/api-reference/invoice-payments/record-a-payment"},{"title":"Retrieve a payment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices/{id}/payments/{paymentId}","href":"/api-reference/invoice-payments/retrieve-a-payment"}]},{"group":"Quotations","pages":[{"title":"List quotations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /quotations","href":"/api-reference/quotations/list-quotations"},{"title":"Create a quotation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /quotations","href":"/api-reference/quotations/create-a-quotation"},{"title":"Retrieve a quotation","deprecated":null,"version":null,"openapi":"/openapi.yaml get /quotations/{id}","href":"/api-reference/quotations/retrieve-a-quotation"},{"title":"Change a quotation status","deprecated":null,"version":null,"openapi":"/openapi.yaml put /quotations/{id}/status","href":"/api-reference/quotations/change-a-quotation-status"}]}]}]},"title":"Update a work - BeanRails","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","Page-R3M_BF4L.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js","Markdown-CCeGv-zI.js","clsx-BGBGWFTt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Cv_O2fky.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-2C5OB2eV.js"]}