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

Commit afc521b

Browse files
committed
Add expiry field to code sample
1 parent a30b1e2 commit afc521b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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}?expiry={secondsUntilExpiry}" \
241241
-H "Content-type: application/json" \
242242
-H "X-SF-TOKEN: <your-user-session-api-token-value>"
243243
@@ -247,7 +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 seconds and 5,676,000,000 seconds (18 years). If left unspecified, the token remains valid for 30 days.
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.
251251
#. Call the API endpoint to rotate the token.
252252

253253
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)