Zoho WorkDrive API’s Get All Teams of User endpoint does not work

Zoho WorkDrive API’s Get All Teams of User endpoint does not work

Hello, I am a user of Zoho WorkDrive and I need some help with using its API.

I have followed the Zoho WorkDrive API Documentation and I am trying to use the Get All Teams of User endpoint, but it is not working for me. What am I doing wrong?

I have successfully obtained the access token and I can use the Get User Info endpoint with this command.

  1. curl -X GET “https://www.zohoapis.com/workdrive/api/v1/users/me” ^ -H "Authorization: Zoho-oauthtoken 1000.×××××××××××

This is the response I get from this command.


{
    "data": {
        "id": "111111111111",
        "type": "users",
        "attributes": {
            "theme_color": "2222222",
            "getting_started": 1,
            "favoritedfiles_view_pref": {
                "sort_by": "last_modified",
                "sort_order": "desc",
                "filtered_by": "all",
                "layout": "list"
            },
            "last_login_time_in_millisecond": 0,
            "invited_time": 33333333,
            "user_type": 1,
            "zid": "111111111111",
            "role_id": 30,
            "preferred_view": "TEAM",
            "is_mobile_enabled": true,
            "last_accessed_folder": "",
            "enable_myspace_restriction_all": false,
            "outgoingfiles_view_pref": {
                "sort_by": "last_modified",
                "sort_order": "desc",
                "filtered_by": "all",
                "layout": "list"
            }
        }
    }


However, when I try to use the Get All Teams of User endpoint with this command, it does not work. 


  1. curl -X GET "https://www.zohoapis.com/workdrive/api/v1/users/111111111111/teams" ^
  2. -H "Authorization: Zoho-oauthtoken 1000.×××××××××××"

This is the error message I receive. 

{
    "errors": [
        {
            "id": "F9999999",
            "title": "URL Rule is not configured"
        }
    ]
}

I am not sure what this error means or how to fix it. Could you please give me some advice or guidance on how to use the API correctly? I am using Windows10 as my operating system.

Thank you very much for your time and help. I really appreciate it.