Put a version of a document in force
PUT
/console/policies/{document}
const url = 'https://example.com/console/policies/terms';const options = { method: 'PUT', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"version":"2026-09-28","summary":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/console/policies/terms \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "version": "2026-09-28", "summary": "example" }'Sets the version everybody must have accepted, as the date the document took effect. Anybody whose acceptance is older is asked again the next time they use Bottle: their drivers carry on delivering and they can still read and export, while office work waits. Moving the date backwards asks nobody: somebody who accepted a later version has agreed to more, not less.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”document
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
version
required
string
Example
2026-09-28summary
string | null
Responses
Section titled “Responses”In force
Media typeapplication/json
object
document
required
string
version
required
string
summary
required
string | null
setAt
required
string format: date-time
Example
{ "document": "terms", "version": "2026-09-28"}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not Bottle staff, no two-step sign-in, or a console role too low for this
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}