Updated operational mode of the policy.Available options: enforcement, suggestion
string
Updated display name of the policy.
object
Rules that define how the policy behaves.
Show properties
array of string
A list of charging station operator IDs that are permitted.
array of string
A list of charging station operator IDs that are explicitly forbidden.
array of object
A list of geographic areas where charging is permitted.
Show properties
object
No description available.
Show properties
number
No description available.
number
No description available.
string
A name for the geofenced area.
integer
The radius from the center point in meters.
integer | null
The maximum allowable price per kilowatt-hour in the account’s default currency, in the smallest currency unit.
array of object
Defines when charging is permitted.
Show properties
array of string
Days of the week this window applies to.Available options: monday, tuesday, wednesday, thursday, friday, saturday, sunday
string
The end of the time window in 24-hour format.
string
The start of the time window in 24-hour format.
string
Updated status of the policy.Available options: active, inactive
More parameters
string | null
Updated description of the policy’s purpose.
object
Set of key-value pairs that you can attach to an object.
Returns
Returns the updated policy.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Charge","colors":{"primary":"#1fa04b","light":"#1fa04b","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/charge/0Pecn5SzdmcBwHIx/assets/logo.png?fit=max\u0026auto=format\u0026n=0Pecn5SzdmcBwHIx\u0026q=85\u0026s=ae96c173a03cc3d7bbaac4c8d4172419","dark":"https://mintcdn.com/charge/0Pecn5SzdmcBwHIx/assets/logo-white.png?fit=max\u0026auto=format\u0026n=0Pecn5SzdmcBwHIx\u0026q=85\u0026s=c400f9e969c67d1696f93d3f01b91dcc","href":"https://chargeapi.co"},"favicon":"/assets/favicon.ico","api":{"playground":{"display":"none"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.chargeapi.co/v1"}},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://chargeapi.co/contact","label":"Contact"}],"primary":{"type":"button","label":"Get API Keys","href":"https://chargeapi.co/signup"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/chargeapi"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://chargeapi.co/"},{"anchor":"Blog","icon":"newspaper","href":"https://chargeapi.co/blog"},{"anchor":"Support","icon":"message","href":"https://chargeapi.co/contact"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"charge","hasAudioNarration":false,"actualSubdomain":"charge","customDomains":["docs.chargeapi.co"],"gitSource":{"type":"github","owner":"leroilambda","repo":"docs-mintlify","deployBranch":"main","contentDirectory":"site","isPrivate":true,"mountPath":"","label":"","_id":"6b10a1bf9ffae5051c3f8948"},"entitlements":{},"buildId":"6ae91d57dad76a2288f7a5cc:success","clientVersion":"0.0.4424","searchFilterCounts":[{"language":"default","tag":"API Reference","count":171},{"language":"default","tag":"Drivers","count":8},{"language":"default","tag":"Invoices","count":8},{"language":"default","tag":"Vehicles","count":8},{"language":"default","tag":"Payment Methods","count":7},{"language":"default","tag":"Reservations","count":7},{"language":"default","tag":"Fleets","count":6},{"language":"default","tag":"Policies","count":6},{"language":"default","tag":"Webhook Endpoints","count":6},{"language":"default","tag":"Charging Sessions","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area .mdx-content>.field{margin-block:0!important;padding-block:1rem!important}#content-area .mdx-content>.field>[data-component-part=\"field-content\"]{font-size:initial;margin-top:0.5rem!important}#content-area .mdx-content>.field>[data-component-part=\"field-content\"]>*{margin:0!important}#content-area .mdx-content>.field>[data-component-part=\"field-content\"]>*+*{margin-top:0.5rem!important}#navigation-items button>svg{display:none}#navigation-items :is(a,button):not(.bg-primary\\/10):hover{background-color:transparent}#navigation-items a.charge-sidebar-optimistic-active{color:rgb(var(--primary))!important;background-color:rgb(var(--primary) / 0.1)!important;text-shadow:-0.2px 0 0 currentColor,\n 0.2px 0 0 currentColor!important}#navigation-items.charge-has-optimistic-highlight a.group.bg-primary\\/10:not(.charge-sidebar-optimistic-active){color:rgb(var(--gray-700))!important;background-color:transparent!important;text-shadow:none!important}.dark #navigation-items.charge-has-optimistic-highlight a.group.bg-primary\\/10:not(.charge-sidebar-optimistic-active){color:rgb(var(--gray-400))!important}#content-area [data-component-part=\"field-meta-post\"]:has(.charge-expandable-label){color:#0f6a2f;font-size:0.8rem;font-weight:700;line-height:1.15}@media (min-width: 1024px){#content-side-layout{min-width:35vw}#content-side-layout>*{width:100%}#navbar+div,#navbar>#navbar-transition+div{max-width:none;padding-left:0;padding-right:min(6.1rem, calc(-1.7rem + 5vw))}#navbar>#navbar-transition+div>div>.relative>.flex{padding-left:2rem;padding-right:0}#content-area{padding-left:min(calc(23.7rem + 6.1rem), calc(22rem + 5vw))}#sidebar{margin-left:1rem;top:0!important;border-right:rgb(216, 222, 228) 1px solid}.dark #sidebar{border-right:rgb(31, 32, 33) 1px solid}#sidebar-content{top:4rem;padding-bottom:1rem;padding-right:0}}.concept-card{border-radius:0.5rem;box-shadow:0 4px 6px rgba(0, 0, 0, 0.05);padding:0.75rem;border-left:4px solid #10b981;width:200px}@media (max-width: 767px){#content-area pre,#content-area table{overflow-x:auto;-webkit-overflow-scrolling:touch}#content-area table{display:block;width:100%}#content-area :is(pre,code,td,th){word-break:break-word}.concept-card{width:min(100%, 10rem)}}"}]}
{"page":{"pagePath":"api-reference/policies/update","slug":"/api-reference/policies/update","pageMetadata":{"title":"Update a Policy","api":"POST /policies/{policy}","description":null,"href":"/api-reference/policies/update","hidden":false},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Updates a policy. Parameters you omit keep their current values.`}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(ParamField,{body:`mode`,type:`string`,id:`param-mode`,children:[_jsx(_components.p,{children:`Updated operational mode of the policy.`}),_jsxs(_components.p,{children:[`Available options: `,_jsx(_components.code,{children:`enforcement`}),`, `,_jsx(_components.code,{children:`suggestion`})]})]}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Updated display name of the policy.`})}),`\n`,_jsxs(ParamField,{body:`rules`,type:`object`,id:`param-rules`,children:[_jsx(_components.p,{children:`Rules that define how the policy behaves.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`allowed_operators`,type:`array of string`,id:`param-allowed-operators`,children:_jsx(_components.p,{children:`A list of charging station operator IDs that are permitted.`})}),_jsx(ParamField,{body:`denied_operators`,type:`array of string`,id:`param-denied-operators`,children:_jsx(_components.p,{children:`A list of charging station operator IDs that are explicitly forbidden.`})}),_jsxs(ParamField,{body:`geofences`,type:`array of object`,id:`param-geofences`,children:[_jsx(_components.p,{children:`A list of geographic areas where charging is permitted.`}),_jsxs(Expandable,{title:`properties`,children:[_jsxs(ParamField,{body:`center`,type:`object`,id:`param-center`,children:[_jsx(_components.p,{children:`No description available.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`latitude`,type:`number`,id:`param-latitude`,children:_jsx(_components.p,{children:`No description available.`})}),_jsx(ParamField,{body:`longitude`,type:`number`,id:`param-longitude`,children:_jsx(_components.p,{children:`No description available.`})})]})]}),_jsx(ParamField,{body:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`A name for the geofenced area.`})}),_jsx(ParamField,{body:`radius_meters`,type:`integer`,id:`param-radius-meters`,children:_jsx(_components.p,{children:`The radius from the center point in meters.`})})]})]}),_jsx(ParamField,{body:`max_price_per_kwh`,type:`integer | null`,id:`param-max-price-per-kwh`,children:_jsx(_components.p,{children:`The maximum allowable price per kilowatt-hour in the account’s default currency, in the smallest currency unit.`})}),_jsxs(ParamField,{body:`time_windows`,type:`array of object`,id:`param-time-windows`,children:[_jsx(_components.p,{children:`Defines when charging is permitted.`}),_jsxs(Expandable,{title:`properties`,children:[_jsxs(ParamField,{body:`days_of_week`,type:`array of string`,id:`param-days-of-week`,children:[_jsx(_components.p,{children:`Days of the week this window applies to.`}),_jsxs(_components.p,{children:[`Available options: `,_jsx(_components.code,{children:`monday`}),`, `,_jsx(_components.code,{children:`tuesday`}),`, `,_jsx(_components.code,{children:`wednesday`}),`, `,_jsx(_components.code,{children:`thursday`}),`, `,_jsx(_components.code,{children:`friday`}),`, `,_jsx(_components.code,{children:`saturday`}),`, `,_jsx(_components.code,{children:`sunday`})]})]}),_jsx(ParamField,{body:`end_time`,type:`string`,id:`param-end-time`,children:_jsx(_components.p,{children:`The end of the time window in 24-hour format.`})}),_jsx(ParamField,{body:`start_time`,type:`string`,id:`param-start-time`,children:_jsx(_components.p,{children:`The start of the time window in 24-hour format.`})})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.p,{children:`Updated status of the policy.`}),_jsxs(_components.p,{children:[`Available options: `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`inactive`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`more-parameters`,children:`More parameters`}),`\n`,_jsx(ParamField,{body:`description`,type:`string | null`,id:`param-description`,children:_jsx(_components.p,{children:`Updated description of the policy’s purpose.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Set of key-value pairs that you can attach to an object.`})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(_components.p,{children:`Returns the updated policy.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a Policy","api":"POST /policies/{policy}","description":null,"href":"/api-reference/policies/update","hidden":false}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Updates a policy. Parameters you omit keep their current values.`}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.chargeapi.co/v1/policies/pol_dMBjATAAVcbAKtSNnjlfbmnwviSXr8yP`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ch_sk_test_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Example Policy v2\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`32`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`32`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pol_dMBjATAAVcbAKtSNnjlfbmnwviSXr8yP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"policy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-04-01T00:09:07.493Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"enforcement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Policy v2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rules\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"allowed_operators\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example_operator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"denied_operators\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"geofences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"center\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"latitude\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48.8698`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"longitude\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2.3319`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Zone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"radius_meters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1500`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_price_per_kwh\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`25`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"time_windows\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"days_of_week\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"monday\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tuesday\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wednesday\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thursday\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"friday\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"end_time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"18:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"start_time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"09:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(ParamField,{body:`mode`,type:`string`,id:`param-mode`,children:[_jsx(_components.p,{children:`Updated operational mode of the policy.`}),_jsxs(_components.p,{children:[`Available options: `,_jsx(_components.code,{children:`enforcement`}),`, `,_jsx(_components.code,{children:`suggestion`})]})]}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Updated display name of the policy.`})}),`\n`,_jsxs(ParamField,{body:`rules`,type:`object`,id:`param-rules`,children:[_jsx(_components.p,{children:`Rules that define how the policy behaves.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`allowed_operators`,type:`array of string`,id:`param-allowed-operators`,children:_jsx(_components.p,{children:`A list of charging station operator IDs that are permitted.`})}),_jsx(ParamField,{body:`denied_operators`,type:`array of string`,id:`param-denied-operators`,children:_jsx(_components.p,{children:`A list of charging station operator IDs that are explicitly forbidden.`})}),_jsxs(ParamField,{body:`geofences`,type:`array of object`,id:`param-geofences`,children:[_jsx(_components.p,{children:`A list of geographic areas where charging is permitted.`}),_jsxs(Expandable,{title:`properties`,children:[_jsxs(ParamField,{body:`center`,type:`object`,id:`param-center`,children:[_jsx(_components.p,{children:`No description available.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`latitude`,type:`number`,id:`param-latitude`,children:_jsx(_components.p,{children:`No description available.`})}),_jsx(ParamField,{body:`longitude`,type:`number`,id:`param-longitude`,children:_jsx(_components.p,{children:`No description available.`})})]})]}),_jsx(ParamField,{body:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`A name for the geofenced area.`})}),_jsx(ParamField,{body:`radius_meters`,type:`integer`,id:`param-radius-meters`,children:_jsx(_components.p,{children:`The radius from the center point in meters.`})})]})]}),_jsx(ParamField,{body:`max_price_per_kwh`,type:`integer | null`,id:`param-max-price-per-kwh`,children:_jsx(_components.p,{children:`The maximum allowable price per kilowatt-hour in the account’s default currency, in the smallest currency unit.`})}),_jsxs(ParamField,{body:`time_windows`,type:`array of object`,id:`param-time-windows`,children:[_jsx(_components.p,{children:`Defines when charging is permitted.`}),_jsxs(Expandable,{title:`properties`,children:[_jsxs(ParamField,{body:`days_of_week`,type:`array of string`,id:`param-days-of-week`,children:[_jsx(_components.p,{children:`Days of the week this window applies to.`}),_jsxs(_components.p,{children:[`Available options: `,_jsx(_components.code,{children:`monday`}),`, `,_jsx(_components.code,{children:`tuesday`}),`, `,_jsx(_components.code,{children:`wednesday`}),`, `,_jsx(_components.code,{children:`thursday`}),`, `,_jsx(_components.code,{children:`friday`}),`, `,_jsx(_components.code,{children:`saturday`}),`, `,_jsx(_components.code,{children:`sunday`})]})]}),_jsx(ParamField,{body:`end_time`,type:`string`,id:`param-end-time`,children:_jsx(_components.p,{children:`The end of the time window in 24-hour format.`})}),_jsx(ParamField,{body:`start_time`,type:`string`,id:`param-start-time`,children:_jsx(_components.p,{children:`The start of the time window in 24-hour format.`})})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.p,{children:`Updated status of the policy.`}),_jsxs(_components.p,{children:[`Available options: `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`inactive`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`more-parameters`,children:`More parameters`}),`\n`,_jsx(ParamField,{body:`description`,type:`string | null`,id:`param-description`,children:_jsx(_components.p,{children:`Updated description of the policy’s purpose.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Set of key-value pairs that you can attach to an object.`})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(_components.p,{children:`Returns the updated policy.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a Policy","api":"POST /policies/{policy}","description":null,"href":"/api-reference/policies/update","hidden":false}}}},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"More parameters","slug":"more-parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.chargeapi.co/v1/policies/pol_dMBjATAAVcbAKtSNnjlfbmnwviSXr8yP\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer ch_sk_test_...\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --json\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Example Policy v2\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"32\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pol_dMBjATAAVcbAKtSNnjlfbmnwviSXr8yP\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"object\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"policy\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-04-01T00:09:07.493Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"mode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"enforcement\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Policy v2\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"rules\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"allowed_operators\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"example_operator\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"denied_operators\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"geofences\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"center\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"latitude\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">48.8698\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"longitude\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2.3319\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Zone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"radius_meters\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1500\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"max_price_per_kwh\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">25\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"time_windows\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"days_of_week\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"monday\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"tuesday\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"wednesday\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"thursday\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"friday\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"end_time\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"18:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"start_time\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"09:00\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"active\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Update a Policy","path":"/policies/{policy}","servers":[{"url":"https://api.chargeapi.co/v1"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"mode":[{"type":"string","description":"Updated operational mode of the policy. Available options: `enforcement` , `suggestion`"}],"name":[{"type":"string","description":"Updated display name of the policy."}],"rules":[{"type":"object","properties":{"allowed_operators":[{"type":"object","properties":{},"description":"A list of charging station operator IDs that are permitted."}],"denied_operators":[{"type":"object","properties":{},"description":"A list of charging station operator IDs that are explicitly forbidden."}],"geofences":[{"type":"object","properties":{"center":[{"type":"object","properties":{"latitude":[{"type":"number","description":"No description available."}],"longitude":[{"type":"number","description":"No description available."}]},"description":"No description available."}],"name":[{"type":"string","description":"A name for the geofenced area."}],"radius_meters":[{"type":"integer","description":"The radius from the center point in meters."}]},"description":"A list of geographic areas where charging is permitted."}],"max_price_per_kwh":[{"type":"object","properties":{},"description":"The maximum allowable price per kilowatt-hour in the account’s default currency, in the smallest currency unit."}],"time_windows":[{"type":"object","properties":{"days_of_week":[{"type":"object","properties":{},"description":"Days of the week this window applies to. Available options: `monday` , `tuesday` , `wednesday` , `thursday` , `friday` , `saturday` , `sunday`"}],"end_time":[{"type":"string","description":"The end of the time window in 24-hour format."}],"start_time":[{"type":"string","description":"The start of the time window in 24-hour format."}]},"description":"Defines when charging is permitted."}]},"description":"Rules that define how the policy behaves."}],"status":[{"type":"string","description":"Updated status of the policy. Available options: `active` , `inactive`"}],"description":[{"type":"object","properties":{},"description":"Updated description of the policy’s purpose."}],"metadata":[{"type":"object","properties":{},"description":"Set of key-value pairs that you can attach to an object."}]}}],"examples":{"example":{"value":{"mode":"\u003cstring>","name":"\u003cstring>","rules":{"allowed_operators":{},"denied_operators":{},"geofences":{"center":{"latitude":123,"longitude":123},"name":"\u003cstring>","radius_meters":123},"max_price_per_kwh":{},"time_windows":{"days_of_week":{},"end_time":"\u003cstring>","start_time":"\u003cstring>"}},"status":"\u003cstring>","description":{},"metadata":{}}}}}}},"response":{},"deprecated":false}},"jsLinks":["/_mintlify/custom/charge/418810821a32ee16/js/accordion.js","/_mintlify/custom/charge/bc6f19d470a45a01/js/api-patchers.js"],"subdomain":"charge","siteName":"Charge","title":"Update a Policy - Charge","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-17T23:08:41.885Z","originalFileLocation":"api-reference/policies/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Charge\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/charge/VdCjE--f7PTxLgAs/_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/charge/VdCjE--f7PTxLgAs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/charge/VdCjE--f7PTxLgAs/_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/charge/VdCjE--f7PTxLgAs/_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/charge/VdCjE--f7PTxLgAs/_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/charge/VdCjE--f7PTxLgAs/_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/charge/VdCjE--f7PTxLgAs/_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/charge/VdCjE--f7PTxLgAs/_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/charge/VdCjE--f7PTxLgAs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a Policy - Charge\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Charge\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.chargeapi.co/api-reference/policies/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://charge.mintlify.site/_mintlify/api/og/v2?division=Policies\u0026amp;title=Update+a+Policy\u0026amp;theme=c565ac3b773cc6c3d2d26619\u0026amp;signature=0e6efb0b12e69b537af075b0a9a7cda34e7c9d38c9d4a9929c8b3f2aa1105562\">\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 Policy - Charge\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://charge.mintlify.site/_mintlify/api/og/v2?division=Policies\u0026amp;title=Update+a+Policy\u0026amp;theme=c565ac3b773cc6c3d2d26619\u0026amp;signature=0e6efb0b12e69b537af075b0a9a7cda34e7c9d38c9d4a9929c8b3f2aa1105562\">\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/charge/VdCjE--f7PTxLgAs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Charge\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1fa04b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.chargeapi.co/api-reference/policies/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/policies/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.chargeapi.co/#organization\",\"name\":\"Charge\",\"url\":\"https://docs.chargeapi.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/charge/0Pecn5SzdmcBwHIx/assets/logo.png?fit=max\u0026auto=format\u0026n=0Pecn5SzdmcBwHIx\u0026q=85\u0026s=ae96c173a03cc3d7bbaac4c8d4172419\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.chargeapi.co#website\",\"name\":\"Charge\",\"url\":\"https://docs.chargeapi.co\",\"publisher\":{\"@id\":\"https://docs.chargeapi.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.chargeapi.co/api-reference/policies/update#webpage\",\"url\":\"https://docs.chargeapi.co/api-reference/policies/update\",\"name\":\"Update a Policy\",\"dateModified\":\"2026-03-17T23:08:41.885Z\",\"isPartOf\":{\"@id\":\"https://docs.chargeapi.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.chargeapi.co/api-reference/policies/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.chargeapi.co/api-reference/policies/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.chargeapi.co/api-reference/accounts/object\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Policies\",\"item\":\"https://docs.chargeapi.co/api-reference/policies/object\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a Policy\",\"item\":\"https://docs.chargeapi.co/api-reference/policies/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.chargeapi.co/api-reference/policies/update#apireference\",\"headline\":\"Update a Policy\",\"name\":\"Update a Policy\",\"url\":\"https://docs.chargeapi.co/api-reference/policies/update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.chargeapi.co/api-reference/policies/update#webpage\"},\"dateModified\":\"2026-03-17T23:08:41.885Z\",\"publisher\":{\"@id\":\"https://docs.chargeapi.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.chargeapi.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Charge\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Charge\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/policies/update.md","siteName":"Charge","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://chargeapi.co/"},{"anchor":"Blog","icon":"newspaper","href":"https://chargeapi.co/blog"},{"anchor":"Support","icon":"message","href":"https://chargeapi.co/contact"}]},"anchors":[{"anchor":"API Reference","icon":"rectangle-terminal","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Authentication","href":"/authentication"},{"title":"Error Handling","href":"/errors"},{"title":"Versioning","mode":"wide","href":"/versioning"},{"title":"Webhooks","href":"/webhooks"}]},{"group":"API Behavior","pages":[{"title":"Idempotent requests","href":"/idempotency"},{"title":"Metadata","href":"/metadata"},{"title":"Pagination","href":"/pagination"},{"title":"Expanding Responses","href":"/expand"}]},{"group":"API Reference","pages":[{"group":"Accounts","pages":[{"title":"The Account object","href":"/api-reference/accounts/object"},{"title":"Create an Account","api":"POST /accounts","href":"/api-reference/accounts/create"},{"title":"Update an Account","api":"POST /accounts/{account}","href":"/api-reference/accounts/update"},{"title":"Retrieve an Account","api":"GET /accounts/{account}","href":"/api-reference/accounts/retrieve"}]},{"group":"Charging Sessions","pages":[{"title":"The Charging Session object","href":"/api-reference/charging_sessions/object"},{"title":"Create a Charging Session","api":"POST /charging_sessions","href":"/api-reference/charging_sessions/create"},{"title":"Retrieve a Charging Session","api":"GET /charging_sessions/{charging_session}","href":"/api-reference/charging_sessions/retrieve"},{"title":"List Charging Sessions","api":"GET /charging_sessions","href":"/api-reference/charging_sessions/list"},{"title":"End a Charging Session","api":"POST /charging_sessions/{charging_session}/end","href":"/api-reference/charging_sessions/end"}]},{"group":"Charging Stations","pages":[{"title":"The Charging Station object","href":"/api-reference/charging_stations/object"},{"title":"Retrieve a Charging Station","api":"GET /charging_stations/{charging_station}","href":"/api-reference/charging_stations/retrieve"},{"title":"List Charging Stations","api":"GET /charging_stations","href":"/api-reference/charging_stations/list"}]},{"group":"Drivers","pages":[{"title":"The Driver object","href":"/api-reference/drivers/object"},{"title":"Create a Driver","api":"POST /drivers","href":"/api-reference/drivers/create"},{"title":"Update a Driver","api":"POST /drivers/{driver}","href":"/api-reference/drivers/update"},{"title":"Retrieve a Driver","api":"GET /drivers/{driver}","href":"/api-reference/drivers/retrieve"},{"title":"List Drivers","api":"GET /drivers","href":"/api-reference/drivers/list"},{"title":"Delete a Driver","api":"DELETE /drivers/{driver}","href":"/api-reference/drivers/delete"},{"title":"Attach a driver","api":"POST /drivers/{driver}/attach","href":"/api-reference/drivers/attach"},{"title":"Detach a driver","api":"POST /drivers/{driver}/detach","href":"/api-reference/drivers/detach"}]},{"group":"Estimations","pages":[{"title":"The Estimation object","href":"/api-reference/estimations/object"},{"title":"Create an Estimation","api":"POST /estimations","href":"/api-reference/estimations/create"},{"title":"Retrieve an Estimation","api":"GET /estimations/{estimation}","href":"/api-reference/estimations/retrieve"}]},{"group":"Events","pages":[{"title":"The Event object","href":"/api-reference/events/object"}]},{"group":"Fleets","pages":[{"title":"The Fleet object","href":"/api-reference/fleets/object"},{"title":"Create a Fleet","api":"POST /fleets","href":"/api-reference/fleets/create"},{"title":"Update a Fleet","api":"POST /fleets/{fleet}","href":"/api-reference/fleets/update"},{"title":"Retrieve a Fleet","api":"GET /fleets/{fleet}","href":"/api-reference/fleets/retrieve"},{"title":"List Fleets","api":"GET /fleets","href":"/api-reference/fleets/list"},{"title":"Delete a Fleet","api":"DELETE /fleets/{fleet}","href":"/api-reference/fleets/delete"}]},{"group":"Invoices","pages":[{"title":"The Invoice object","href":"/api-reference/invoices/object"},{"title":"Create an Invoice","api":"POST /invoices","href":"/api-reference/invoices/create"},{"title":"Update an Invoice","api":"POST /invoices/{invoice}","href":"/api-reference/invoices/update"},{"title":"Retrieve an Invoice","api":"GET /invoices/{invoice}","href":"/api-reference/invoices/retrieve"},{"title":"List Invoices","api":"GET /invoices","href":"/api-reference/invoices/list"},{"title":"Finalize an Invoice","api":"POST /invoices/{invoice}/finalize","href":"/api-reference/invoices/finalize"},{"title":"Pay an Invoice","api":"POST /invoices/{invoice}/pay","href":"/api-reference/invoices/pay"},{"title":"Void an Invoice","api":"POST /invoices/{invoice}/void","href":"/api-reference/invoices/void"}]},{"group":"Payment Methods","pages":[{"title":"The Payment Method object","href":"/api-reference/payment_methods/object"},{"title":"Create a Payment Method","api":"POST /payment_methods","href":"/api-reference/payment_methods/create"},{"title":"Update a Payment Method","api":"POST /payment_methods/{payment_method}","href":"/api-reference/payment_methods/update"},{"title":"Retrieve a Payment Method","api":"GET /payment_methods/{payment_method}","href":"/api-reference/payment_methods/retrieve"},{"title":"List Payment Methods","api":"GET /payment_methods","href":"/api-reference/payment_methods/list"},{"title":"Attach a payment method","api":"POST /payment_methods/{payment_method}/attach","href":"/api-reference/payment_methods/attach"},{"title":"Detach a payment method","api":"POST /payment_methods/{payment_method}/detach","href":"/api-reference/payment_methods/detach"}]},{"group":"Policies","pages":[{"title":"The Policy object","href":"/api-reference/policies/object"},{"title":"Create a Policy","api":"POST /policies","description":null,"href":"/api-reference/policies/create"},{"title":"Update a Policy","api":"POST /policies/{policy}","href":"/api-reference/policies/update"},{"title":"Retrieve a Policy","api":"GET /policies/{policy}","description":null,"href":"/api-reference/policies/retrieve"},{"title":"List Policies","api":"GET /policies","href":"/api-reference/policies/list"},{"title":"Delete a Policy","api":"DELETE /policies/{policy}","href":"/api-reference/policies/delete"}]},{"group":"Reports","pages":[{"title":"The Report object","href":"/api-reference/reports/object"},{"title":"Create a Report","api":"POST /reports","href":"/api-reference/reports/create"},{"title":"Retrieve a Report","api":"GET /reports/{report}","href":"/api-reference/reports/retrieve"},{"title":"List Reports","api":"GET /reports","href":"/api-reference/reports/list"}]},{"group":"Reservations","pages":[{"title":"The Reservation object","href":"/api-reference/reservations/object"},{"title":"Create a Reservation","api":"POST /reservations","href":"/api-reference/reservations/create"},{"title":"Update a Reservation","api":"POST /reservations/{reservation}","href":"/api-reference/reservations/update"},{"title":"Retrieve a Reservation","api":"GET /reservations/{reservation}","href":"/api-reference/reservations/retrieve"},{"title":"List Reservations","api":"GET /reservations","href":"/api-reference/reservations/list"},{"title":"Cancel a Reservation","api":"POST /reservations/{reservation}/cancel","href":"/api-reference/reservations/cancel"},{"title":"Confirm a Reservation","api":"POST /reservations/{reservation}/confirm","href":"/api-reference/reservations/confirm"}]},{"group":"Transactions","pages":[{"title":"The Transaction object","href":"/api-reference/transactions/object"},{"title":"Retrieve a Transaction","api":"GET /transactions/{transaction}","href":"/api-reference/transactions/retrieve"},{"title":"List Transactions","api":"GET /transactions","href":"/api-reference/transactions/list"}]},{"group":"Vehicles","pages":[{"title":"The Vehicle object","href":"/api-reference/vehicles/object"},{"title":"Create a Vehicle","api":"POST /vehicles","href":"/api-reference/vehicles/create"},{"title":"Update a Vehicle","api":"POST /vehicles/{vehicle}","href":"/api-reference/vehicles/update"},{"title":"Retrieve a Vehicle","api":"GET /vehicles/{vehicle}","href":"/api-reference/vehicles/retrieve"},{"title":"List Vehicles","api":"GET /vehicles","href":"/api-reference/vehicles/list"},{"title":"Delete a Vehicle","api":"DELETE /vehicles/{vehicle}","href":"/api-reference/vehicles/delete"},{"title":"Attach a vehicle","api":"POST /vehicles/{vehicle}/attach","href":"/api-reference/vehicles/attach"},{"title":"Detach a vehicle","api":"POST /vehicles/{vehicle}/detach","href":"/api-reference/vehicles/detach"}]},{"group":"Vehicle Telemetries","pages":[{"title":"The Vehicle Telemetry object","href":"/api-reference/vehicle_telemetries/object"},{"title":"Retrieve a Vehicle Telemetry","api":"GET /vehicles/{vehicle}/telemetry","href":"/api-reference/vehicle_telemetries/retrieve"}]},{"group":"Webhook Endpoints","pages":[{"title":"The Webhook Endpoint object","href":"/api-reference/webhook_endpoints/object"},{"title":"Create a Webhook Endpoint","api":"POST /webhook_endpoints","href":"/api-reference/webhook_endpoints/create"},{"title":"Update a Webhook Endpoint","api":"POST /webhook_endpoints/{webhook_endpoint}","href":"/api-reference/webhook_endpoints/update"},{"title":"Retrieve a Webhook Endpoint","api":"GET /webhook_endpoints/{webhook_endpoint}","href":"/api-reference/webhook_endpoints/retrieve"},{"title":"List Webhook Endpoints","api":"GET /webhook_endpoints","href":"/api-reference/webhook_endpoints/list"},{"title":"Delete a Webhook Endpoint","api":"DELETE /webhook_endpoints/{webhook_endpoint}","href":"/api-reference/webhook_endpoints/delete"}]}]}]}]},"basePath":"","title":"Update a Policy - Charge","deploymentId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","buildId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-rrEjMEj9.js","snippetPresets-BAwajHq0.js","utils-Dk5Rw1j7.js","style-to-object-BY3JEAdk.js","utils-DEa5s7HT.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DklRggtM.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Dmd8Dtl3.js","_Uint8Array-DJOdfMxL.js","isObject-FP1Yky1u.js","ApiExamples-D_AaxPsu.js","usePlaygroundInputsStore-Cma-50-F.js","shallow-BkbikJPT.js","isEqual-ChmK1oW2.js","CodeSnippets-RshC0qEa.js","CodeSnippet-C4HlRD7L.js","use-playground-group-access-BA-Tl_RI.js","Page-QqDMRMNz.js","api-description-markdown-BZgYMOP-.js","DynamicMarkdown-Bud--1w4.js","SectionHeading-oXLyPZnT.js","MethodPill-CqC02MRb.js","getPastedJson-C90_9vhn.js","Check2Icon-DqC8Aq9w.js","axios-CsQoIw0U.js"]}