Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit b49fc13

Browse files
Merge pull request #2425 from splunk/trangl-docguild-27453-org-token-expiry
Add optional step for org token expiry
2 parents 206462d + 8f3106c commit b49fc13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin/authentication/authentication-tokens/org-tokens.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ To rotate an access token with the API, use the ``POST /token/{name}/rotate`` en
237237

238238
.. code-block:: bash
239239
240-
curl -X POST "https://api.{realm}.signalfx.com/v2/token/{name}/rotate?graceful={gracePeriod}" \
240+
curl -X POST "https://api.{realm}.signalfx.com/v2/token/{name}/rotate?graceful={gracePeriod}&secondsUntilExpiry={secondsUntilExpiry}" \
241241
-H "Content-type: application/json" \
242242
-H "X-SF-TOKEN: <your-user-session-api-token-value>"
243243
@@ -247,6 +247,7 @@ Follow these steps:
247247
#. Enter your API session token in the ``your-user-session-api-token-value`` field. To find or create an API session token, see :ref:`admin-api-access-tokens`.
248248
#. Provide the name of the token you want to rotate in the ``name`` field.
249249
#. Optionally, provide a grace period, in seconds, in the ``gracePeriod`` field.
250+
#. Optionally, provide the seconds until your token expires in the ``secondsUntilExpiry`` field. This can be any value between 0 second and 5,676,000,000 seconds (18 years), inclusive. If left unspecified, the token remains valid for 30 days.
250251
#. Call the API endpoint to rotate the token.
251252

252253
For example, the following API call rotates ``myToken`` and sets a grace period of 604800 seconds (7 days) before the previous token secret expires.

0 commit comments

Comments
 (0)