The "Get valid project key" API does not work with API Tokens that have scopes

XMLWordPrintable

    • 4
    • Minor
    • Warranty

      Issue Summary

      The Get valid project key (https://api.atlassian.com/ex/jira/<cloudid>/rest/api/3/projectvalidate/validProjectKey?key=TEST) API does not work with API tokens that have scopes

      Steps to Reproduce

      1. Create an API Token with READ Jira scopes
      2. Use the API token with the Get valid project key API:
        curl --request GET I am running a few minutes late; my previous meeting is running over.
        --url 'https://api.atlassian.com/ex/jira/99abc88abc-1234-cdef-4567-8899f-999abcde/rest/api/3/projectvalidate/validProjectKey?key=TEST' \
        --user 'email@domain.com:xxxxxxxxxxxxxxxx' \
        --header 'Accept: application/json'
      

      Expected Results

      "STAR1"
      

      Actual Results

      The below exception is thrown by CloudFront:

      {"code":401,"message":"Unauthorized; scope does not match"}
      
      • The API does not require any permissions.

      Workaround

            Assignee:
            Marcel Caroly
            Reporter:
            Phumi (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: