Updates the current user's settings. Only settings fields specified in the request body will be updated.

URL Parameters

NameDescriptionLocationRequiredDefault Value
idID of the user settings from GET /users/me/settingspathYes

Body Parameters

NameDescriptionJSON typeRequiredDefault Value
eula_version_agreedIf empty will prompt user for EULA agreement, otherwise should contain date user agreed.stringNo
toc_version_agreedEULA version that user agreed to, this should be a date.stringNo
autoAcceptInviteAccept invitations from certain groups automatically. Possible values:
  • relation: Auto accept from my colleagues or any user that has been in the same space as current user before
  • none: Do not auto accept from anyone
stringNo
autoHideWebTutorialTrue will disable tutorial on login, false will enable it.booleanNo
mANotifMobile sound notification.stringNo'vibes'
mNotifMute mobile notification: 'none', 'direct', 'all'.stringNo'all'
dANotifDesktop sound notification.stringNo'vibes'
dNotifMute desktop notification for: 'none', 'direct', 'all'.stringNo'all'
muteaudioMute audio when joining media session.booleanNofalse
mutevideoMute video when joining media session.booleanNofalse
disableAutoJoinShould user join media session automatically when joining a space.booleanNofalse
tourFeaturesArray of strings representing which tour features the user has already seen.ArrayNo

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

OAuthAuthorizer

Example Request

URL

POST https://spacesapis.zang.io/api/users/me/settings/{id}

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Body

{
  "muteaudio": false,
  "mutevideo": false
}

Example Response

{
  "data": [
    {
      "autoAcceptInvite": "relation",
      "_id":"593807c4e8466d05641bb7f9",
      "parentid":"593807c13b3132a1e27c8069",
      "parent_type":"user",
      "toc_version_agreed":"20170306",
      "eula_version_agreed":null,
      "username":"wesleyf@esna.com",
      "tourFeatures":[],
      "showFeatureTipsOnStartUp":false,
      "created":"2017-06-07T14:03:48.880Z",
      "autoHideWebTutorial":true,
      "mANotif":"vibes",
      "mNotif":"all",
      "dANotif":"vibes",
      "dNotif":"all",
      "disableAutoJoin":true,
      "muteaudio":true,
      "mutevideo":true,
      "tourFeatures": [
        "sidebar_feature", "sidebar_user_menu_feature", "sidebar_spaces_list_feature"
      ]
    }
  ],
  "_metaData":  {
    "credits_url":"https://zang.io/docs/Zang_Spaces_Copyright_Licensing.pdf",
    "eula_url":"https://www.zang.io/legal/eula/",
    "eula_version":"20161013",
    "privacy_url":"https://zang.io/headless/legal/privacy-statement",
    "toc_url":"https://zang.io/headless/legal/spaces/tos",
    "toc_version":"20170306","fcmSenderId":"203710197656",
    "fcmClientApiKey":"AIzaSyADEVBBbdjwI9ilRKqyIT9wsIczuPeQB5I"
  }
}