GET /user/{userId}/settings responds with unexpected payload

API Endpoint(s) and/or Zoom API Event(s)

*GET * /v2/users/{userId}/settings?custom_query_fields=virtual_background,virtual_background_settings

Description
When the endpoint is called I get a 200 back but the payload is completely different to what is described in the documentation. Here is a sample response body:

{
“id”: null,
“first_name”: null,
“last_name”: null,
“email”: null,
“type”: null,
“role_name”: null,
“pmi”: null,
“use_pmi”: null,
“timezone”: null,
“dept”: null,
“created_at”: null,
“last_login_time”: null,
“last_client_version”: null,
“language”: null,
“phone_country”: null,
“phone_number”: null,
“vanity_url”: null,
“personal_meeting_url”: null,
“verified”: null,
“pic_url”: null,
“cms_user_id”: null,
“account_id”: null,
“host_key”: null,
“group_ids”: null,
“im_group_ids”: null,
“jid”: null,
“job_title”: null,
“company”: null,
“location”: null,
“custom_attributes”: null
}


Error?
There is no error message.

How To Reproduce
Steps to reproduce the behavior:
1. call GET /v2/users/{userId}/settings?custom_query_fields=virtual_background,virtual_background_settings
with oauth2

Hi @grobinson
Thanks for reaching out to us and welcome back to the Zoo mDeveloper Forum.
I am not able to reproduce this on my end.
When I call the Get user settings endpoint and pass the custom query fields as you did, I get the expected payload

This is my endpoint URL {{baseUrl}}/users/me/settings?custom_query_fields=virtual_background,virtual_background_settings

This is my response body

{
    "in_meeting": {
        "virtual_background": true,
        "virtual_background_settings": {
            "enable": true,
            "allow_videos": true,
            "allow_upload_custom": true,
            "files": [
                {
                    "name": "San Francisco",
                    "type": "image",
                    "is_default": true
                },
                {
                    "name": "Grass",
                    "type": "image",
                    "is_default": true
                },
                {
                    "name": "Earth",
                    "type": "image",
                    "is_default": true
                },
                {
                    "name": "Beach",
                    "type": "video",
                    "is_default": true
                },
                {
                    "name": "Northern Lights",
                    "type": "video",
                    "is_default": true
                }
            ]
        }
    }

Can you please double check the endpoint you are calling

Hi Elisa, I found the issue and looks to be on my side. Thank you for your response. This can be resolved.

Cheers,
Greg

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.