Update tenant settings (timezone, week-start). Admin only.
PATCH
/admin/tenant-settings
const url = 'https://api.gospl.example/v1/admin/tenant-settings';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"timezone":"example","weekStartDay":"monday"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.gospl.example/v1/admin/tenant-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "timezone": "example", "weekStartDay": "monday" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
timezone
IANA timezone, e.g. Europe/London.
string
weekStartDay
Defines week boundaries for goals + summaries. Default Monday.
string
Responses
Section titled “ Responses ”Updated.
Media type application/json
object
tenantId
required
string format: uuid
timezone
required
IANA timezone. Default Europe/London (GMT/BST).
string
weekStartDay
required
Defines week boundaries for goals + summaries. Default Monday.
string
Example
{ "timezone": "Europe/London", "weekStartDay": "monday"}Invalid request (e.g. unknown timezone).
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Missing/invalid credentials.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Not an admin, or cross-tenant.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}