settingsPatch
Modify and update user settings, including access restrictions, calendar configurations, locale preferences, and time-related options, within the Routine server environment.
Instructions
Edit settings.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
patch | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"patch": {
"additionalProperties": false,
"properties": {
"access_restrictions": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"allow_calendar_access": {
"default": null,
"type": [
"boolean",
"null"
]
},
"allow_contact_access": {
"default": null,
"type": [
"boolean",
"null"
]
}
},
"type": "object"
},
"default": {},
"type": "object"
},
"calendars": {
"additionalProperties": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"color": {
"anyOf": [
{
"type": "null"
},
{
"const": "a",
"type": "string"
},
{
"const": "b",
"type": "string"
},
{
"const": "c",
"type": "string"
},
{
"const": "d",
"type": "string"
},
{
"const": "e",
"type": "string"
},
{
"const": "f",
"type": "string"
},
{
"const": "g",
"type": "string"
},
{
"const": "h",
"type": "string"
},
{
"const": "i",
"type": "string"
}
]
},
"disabled": {
"type": [
"boolean",
"null"
]
},
"role": {
"anyOf": [
{
"type": "null"
},
{
"const": "default",
"type": "string"
},
{
"const": "primary",
"type": "string"
},
{
"const": "secondary",
"type": "string"
}
]
}
},
"required": [
"color",
"disabled",
"role"
],
"type": "object"
}
]
},
"default": {},
"type": "object"
},
"hours": {
"additionalProperties": false,
"default": {},
"properties": {
"afternoon": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"hours": {
"maximum": 24,
"minimum": 0,
"type": "integer"
},
"minutes": {
"maximum": 60,
"minimum": 0,
"type": "integer"
},
"seconds": {
"maximum": 60,
"minimum": 0,
"type": "integer"
}
},
"required": [
"minutes",
"seconds"
],
"type": "object"
}
],
"default": null
},
"day": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"hours": {
"maximum": 24,
"minimum": 0,
"type": "integer"
},
"minutes": {
"maximum": 60,
"minimum": 0,
"type": "integer"
},
"seconds": {
"maximum": 60,
"minimum": 0,
"type": "integer"
}
},
"required": [
"minutes",
"seconds"
],
"type": "object"
}
],
"default": null
},
"evening": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"hours": {
"maximum": 24,
"minimum": 0,
"type": "integer"
},
"minutes": {
"maximum": 60,
"minimum": 0,
"type": "integer"
},
"seconds": {
"maximum": 60,
"minimum": 0,
"type": "integer"
}
},
"required": [
"minutes",
"seconds"
],
"type": "object"
}
],
"default": null
},
"night": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"hours": {
"maximum": 24,
"minimum": 0,
"type": "integer"
},
"minutes": {
"maximum": 60,
"minimum": 0,
"type": "integer"
},
"seconds": {
"maximum": 60,
"minimum": 0,
"type": "integer"
}
},
"required": [
"minutes",
"seconds"
],
"type": "object"
}
],
"default": null
},
"noon": {
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"hours": {
"maximum": 24,
"minimum": 0,
"type": "integer"
},
"minutes": {
"maximum": 60,
"minimum": 0,
"type": "integer"
},
"seconds": {
"maximum": 60,
"minimum": 0,
"type": "integer"
}
},
"required": [
"minutes",
"seconds"
],
"type": "object"
}
],
"default": null
}
},
"type": "object"
},
"locale": {
"additionalProperties": false,
"default": {
"hours": null
},
"properties": {
"hours": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"mru_destinations": {
"anyOf": [
{
"items": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"kind": {
"enum": [
"event",
"event-rec",
"page",
"people",
"task",
"task-rec"
],
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"mru_peoples": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null
},
"week_start": {
"anyOf": [
{
"type": "null"
},
{
"const": "monday",
"type": "string"
},
{
"const": "tuesday",
"type": "string"
},
{
"const": "wednesday",
"type": "string"
},
{
"const": "thursday",
"type": "string"
},
{
"const": "friday",
"type": "string"
},
{
"const": "saturday",
"type": "string"
},
{
"const": "sunday",
"type": "string"
}
],
"default": null
}
},
"type": "object"
}
},
"required": [
"patch"
],
"type": "object"
}