Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-82884

Enabling the admin key via REST API endpoint doesn't work without durationInMinutes parameter

XMLWordPrintable

      Issue Summary

      When using the endpoint: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-admin-key/#api-admin-key-post we can see that isn't mandatory to pass the durationInMinutes, and a standard value of 10 minutes is set if this is empty.

      However, a 404 error is issued when not passing this body parameter.

      Steps to Reproduce

      1. Create a POST request against the https://\ {your-domain}

        /wiki/api/v2/admin-key endpoint without the durationInMinutes body parameter.

      Expected Results

      You should receive a successfull message of the admin key creation.

      Actual Results

      The below exception is thrown in the backend logs:

      java.lang.NullPointerException: Cannot invoke ".....durationInMinutes()" because "request" is null 

      Workaround

      Insert the body parameter in the POST request. Something like:

      {"durationInMinutes":60}

              37ac9c378e1a Raman Samoilenka
              21b8d206dcae Vinicius C [Atlassian Support]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: