For the complete documentation index, see llms.txt. This page is also available as Markdown.

My preferences

Показать мои предпочтения

get
Authorizations
AuthorizationstringRequired
Responses
200

OK

application/hal+json
object · UserPreferencesModelOptionalExample: {"_links":{"self":{"href":"/api/v3/my_preferences"},"user":{"href":"/api/v3/users/1","title":"John Sheppard"},"updateImmediately":{"href":"/api/v3/users/3/preferences","method":"patch"}},"_type":"UserPreferences","commentSortDescending":true,"hideMail":false,"timeZone":"Europe/Berlin","warnOnLeavingUnsaved":true,"notifications":[{"watched":false,"involved":true,"mentioned":false,"shared":true,"newsAdded":"false,","newsCommented":false,"documentAdded":false,"forumMessages":false,"wikiPageAdded":false,"wikiPageUpdated":false,"membershipAdded":false,"membershipUpdated":false,"workPackageCommented":false,"workPackageProcessed":false,"workPackagePrioritized":false,"workPackageScheduled":false,"_links":{"project":{"href":null}}}]}
get/api/v3/my_preferences
GET /op/api/v3/my_preferences HTTP/1.1
Host: example.u-meteor.ru
Authorization: Basic username:password
Accept: */*
{
  "_links": {
    "self": {
      "href": "/api/v3/my_preferences"
    },
    "user": {
      "href": "/api/v3/users/1",
      "title": "John Sheppard"
    },
    "updateImmediately": {
      "href": "/api/v3/users/3/preferences",
      "method": "patch"
    }
  },
  "_type": "UserPreferences",
  "commentSortDescending": true,
  "hideMail": false,
  "timeZone": "Europe/Berlin",
  "warnOnLeavingUnsaved": true,
  "notifications": {
    "watched": false,
    "involved": true,
    "mentioned": false,
    "shared": true,
    "newsAdded": "false,",
    "newsCommented": false,
    "documentAdded": false,
    "forumMessages": false,
    "wikiPageAdded": false,
    "wikiPageUpdated": false,
    "membershipAdded": false,
    "membershipUpdated": false,
    "workPackageCommented": false,
    "workPackageProcessed": false,
    "workPackagePrioritized": false,
    "workPackageScheduled": false,
    "_links": {
      "project": {
        "href": null
      }
    }
  }
}

Обновите мои настройки

patch

При вызове этой конечной точки клиент предоставляет в теле один объект, содержащий свойства, которые он хочет изменить.

Authorizations
AuthorizationstringRequired
Body
autoHidePopupsbooleanOptional
timeZonestringOptional
Responses
200

OK

application/hal+json
object · UserPreferencesModelOptionalExample: {"_links":{"self":{"href":"/api/v3/my_preferences"},"user":{"href":"/api/v3/users/1","title":"John Sheppard"},"updateImmediately":{"href":"/api/v3/users/3/preferences","method":"patch"}},"_type":"UserPreferences","commentSortDescending":true,"hideMail":false,"timeZone":"Europe/Berlin","warnOnLeavingUnsaved":true,"notifications":[{"watched":false,"involved":true,"mentioned":false,"shared":true,"newsAdded":"false,","newsCommented":false,"documentAdded":false,"forumMessages":false,"wikiPageAdded":false,"wikiPageUpdated":false,"membershipAdded":false,"membershipUpdated":false,"workPackageCommented":false,"workPackageProcessed":false,"workPackagePrioritized":false,"workPackageScheduled":false,"_links":{"project":{"href":null}}}]}
patch/api/v3/my_preferences
PATCH /op/api/v3/my_preferences HTTP/1.1
Host: example.u-meteor.ru
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 49

{
  "autoHidePopups": true,
  "timeZone": "Europe/Paris"
}
{
  "_links": {
    "self": {
      "href": "/api/v3/my_preferences"
    },
    "user": {
      "href": "/api/v3/users/1",
      "title": "John Sheppard"
    },
    "updateImmediately": {
      "href": "/api/v3/users/3/preferences",
      "method": "patch"
    }
  },
  "_type": "UserPreferences",
  "commentSortDescending": true,
  "hideMail": false,
  "timeZone": "Europe/Berlin",
  "warnOnLeavingUnsaved": true,
  "notifications": {
    "watched": false,
    "involved": true,
    "mentioned": false,
    "shared": true,
    "newsAdded": "false,",
    "newsCommented": false,
    "documentAdded": false,
    "forumMessages": false,
    "wikiPageAdded": false,
    "wikiPageUpdated": false,
    "membershipAdded": false,
    "membershipUpdated": false,
    "workPackageCommented": false,
    "workPackageProcessed": false,
    "workPackagePrioritized": false,
    "workPackageScheduled": false,
    "_links": {
      "project": {
        "href": null
      }
    }
  }
}