Skip to main content

Change Key Rotation Period

POST /api/v1/tenants/:tenantId/rotations

Description

Change the rotation period for a tenant.

Request

  • Authentication:

    • Type: Bearer Token

    • Token: {{bearerToken}} (Replace with the actual bearer token)

  • Headers:

    • Content-Type: application/json
  • URL:

    • Raw URL: /api/v1/tenants/:tenantId/rotations

    • Host:

    • Path: /api/v1/tenants/:tenantId/rotations

    • Variables:

      • tenantId: (Required)

Response:

  • Status: Created (201)
/api/v1/tenants/:tenantId/rotations

Headers

Content-TypeValue
Content-Typeapplication/json

Body (raw)

{
"userId": "<string>",
"actionBy": "<string>",
"apiKeyRotationPeriod": "WEEKS",
"apiKeyRotationValue": "<number>",
"apiKeyRotationCustomDate": {}
}

🔑 Authentication bearer

ParamvalueType
tokenbearerTokenstring

Response: 201

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /api/v1/tenants/:tenantId/rotations \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!