API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

PATCH /v1/profile/preferences

PATCH/v1/profile/preferences

CodeMeta OS API endpoint.

Corps de la requête

NomTypeDescription
themestring
languagestring
notificationsobject
defaultServiceTypeIdstringnull
assignedLocationIdstringnull
defaultLocationstringnull
defaultTicketViewstring
defaultTimeTrackingScopestring
emailFontFamilystringnull
emailFontSizestringnull

Exemple

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
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche