For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI ReferenceRelease notes
DocumentationAPI ReferenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Integration API routes
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTCreate a service account in the database
        • DELDelete a service account in the database
        • GETGet service accounts from the database
        • PATCHRegenerate client secret
        • POSTRetrieve a JWT from a client's credentials
        • PATCHUpdate a service account in the database
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceOAuth

Regenerate client secret

PATCH
http://localhost:3000/oauth/serviceAccounts/:client_id/regenerate
PATCH
/oauth/serviceAccounts/:client_id/regenerate
$curl -X PATCH http://localhost:3000/oauth/serviceAccounts/client_id/regenerate \
> -u "<username>:<password>"
1{
2 "client_id": "5cb7b531d06cceb89fd21b1c",
3 "client_secret": "d4c673d6-17f8-4e76-8034-a87820f96618"
4}

Regenerates the client_secret and returns the new value.

Was this page helpful?
Previous

Retrieve a JWT from a client's credentials

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

client_idstringRequiredformat: "^[0-9a-f]{24}$"
The clientId for the service account

Response

The new client credentials for a service account
client_idstringformat: "^[0-9a-f]{24}$"
String representation of a MongoDB ObjectId
client_secretstring
Uuid representation of client secret

Errors

500
Internal Server Error