[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator
Set New Client Secret By Organization ID And Application ID
DescriptionSets new secret for a specified OAuth App. The previous client secret lasts for a period of time defined in the body of the request.
Request
URLURL
https://console.navigator.vmware.com/cphub/api/auth/v2/orgs/{orgId}/oauth-apps/{oauthAppId}/secret
Path Parameters
Path Parameters
string
orgId
Required
Unique identifier (GUID) of the organization.
string
oauthAppId
Required
The unique identifier of the OAuth Application.
Request Body
Request Body
OrgOauthAppNewSecretRequest
of mimetype application/json
Optional
Sets new secret for a specified OAuth App
{
"newClientSecret": "string",
"secretExpirationTimeInSeconds": 1
}
string
newClientSecret
Required
The new client secret of OAuth client.
integer
secretExpirationTimeInSeconds
Required
How much time the previous client secret will last after newClientSecret is set (both will work in that time period, and only the new one after that).
Authentication
This operation uses the following authentication methods.
Errors
Errors
400
Bad Request - The request is either incomplete or incorrect
401
Unauthorized - The user is not authorized to use the API
403
Forbidden - User does not have permission for this operation
500
Internal Server Error - An unexpected error has occurred while processing the request
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"newClientSecret":"string","secretExpirationTimeInSeconds":1}' https://console.navigator.vmware.com/cphub/api/auth/v2/orgs/{orgId}/oauth-apps/{oauthAppId}/secret
[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator