The caller's tenant settings.
GET
/admin/tenant-settings
const url = 'https://api.gospl.example/v1/admin/tenant-settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.gospl.example/v1/admin/tenant-settings \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”OK
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"}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"}