Generate OAuth Client Secret
POST
/port1/{principalType}/{principalId}/oauth-clients/{clientId}/secretsCreates an additional secret and returns its plaintext once. Existing secrets remain active until explicitly revoked.
Required scope
Any authenticated access token
Errors
400 BAD_REQUESTInvalid request path.
Check the request fields and any validation details, then correct the payload.
401 UNAUTHORIZEDAuthentication required.
Obtain a valid access token, then retry.
403 FORBIDDENThe caller cannot read or manage the selected OAuth client.
Check the linked account and its permissions for the device or resource.
404 NOT_FOUNDOAuth client or secret not found.
Verify the target identifier and that its endpoint or plugin route still exists.
500 INTERNALInternal server error.
Retry with backoff only when the operation is safe to repeat. Include the error code when reporting persistent failures.