PATCH /v1/profile/preferences
PATCH/v1/profile/preferences
CodeMeta OS API endpoint.
Cuerpo de la solicitud
| Nombre | Tipo | Descripción |
|---|
theme | string | |
language | string | |
notifications | object | |
defaultServiceTypeId | stringnull | |
assignedLocationId | stringnull | |
defaultLocation | stringnull | |
defaultTicketView | string | |
defaultTimeTrackingScope | string | |
emailFontFamily | stringnull | |
emailFontSize | stringnull | |
Ejemplo
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",
"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",
"defaultTicketView": "mine",
"defaultTimeTrackingScope": "mine",
"emailFontFamily": null,
"emailFontSize": null
});
Códigos de respuesta
| HTTP |
Significado |
200 |
Default Response |