Requests to Get Organizations Admin API endpoint returns authenticated response but not data

XMLWordPrintable

    • Minor

      Issue Summary

      We have a documented API endpoint "Get Organizations" that purportedly "Returns a list of your organizations (based on your API key)." However this doesn't make sense on a conceptual level because an API key is scoped to a single organization, so it shouldn't ever return more than one result.

      But it actually doesn't return any results. If you use a valid org API key, it returns a 200 response and no data (see screenshot)

      Steps to Reproduce

      1. Create an admin API key
      2. Make a request to https://api.atlassian.com/admin/v1/orgs with API key as bearer token
      3. Observe a 200 OK response with the following body:
      {"data":[],"links":{"self":"https://api.atlassian.com/admin/v1/orgs"},"meta":null} 

      Expected Results

      This endpoint should probably be removed from the documentation. Alternatively, it should return the metadata for a single organization (which implicitly duplicates the Get Org by ID endpoint) and the documentation should be updated accordingly.

       

      Actual Results

      See steps to reproduce.

      Workaround

      None

            Assignee:
            Unassigned
            Reporter:
            Dave Meyer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: