PATCH /v1/profile/preferences
PATCH/v1/profile/preferences
CodeMeta OS API endpoint.
Request Body
| Name | Typ | Beschreibung |
|---|
theme | string | |
language | string | |
notifications | object | |
defaultServiceTypeId | stringnull | |
assignedLocationId | stringnull | |
defaultLocation | stringnull | |
analyticsConsent | boolean | |
defaultTicketView | string | |
defaultTimeTrackingScope | string | |
emailFontFamily | stringnull | |
emailFontSize | stringnull | |
Beispiel
curl -X PATCH https://api.codemeta-os.de/v1/profile/preferences \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"theme": "light",
"language": "string",
"notifications": null,
"defaultServiceTypeId": null,
"assignedLocationId": null,
"defaultLocation": "OFFICE",
"analyticsConsent": false,
"defaultTicketView": "mine",
"defaultTimeTrackingScope": "mine",
"emailFontFamily": null,
"emailFontSize": null
}'
const result = await cm.profile.patch({
"theme": "light",
"language": "string",
"notifications": null,
"defaultServiceTypeId": null,
"assignedLocationId": null,
"defaultLocation": "OFFICE",
"analyticsConsent": false,
"defaultTicketView": "mine",
"defaultTimeTrackingScope": "mine",
"emailFontFamily": null,
"emailFontSize": null
});
Antwortcodes
| HTTP |
Bedeutung |
200 |
Default Response |