/oauth/apps/{appId}/secretA new client secret, shown in this answer only. The old one stops at once, or after 24 hours with graceHours: 24.
collector.rotateMyOAuthAppSecret()X-Request-IdappIdstring (uuid)requiredgraceHours"0" or "24"Keep the old secret working this many hours, so your servers can switch over.
default 0
Option 1: "0"
Option 2: "24"
201CreatedThe new secret, shown once.
An app just made (or its secret just rotated): the only time its secret is shown.
clientSecretstring or nullrequiredA confidential app’s client secret. Store it now: it can’t be shown again.
invalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
unauthorized: Not signed in (no session or token, or an expired one).
not_found: Nothing at that address.
not_confidentialsecret_changed
not_confidential: A public app has no secret.
secret_changed: Rotated by another request at the same moment: try again.
payload_too_large: The body is over 1,048,576 bytes, this operation’s limit.
rate_limitedtemporarily_blocked
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
internal: Something went wrong on our side (quote the requestId).
api_keys_unavailable: This deployment isn’t set up for API keys and OAuth.