Update Secret
Changed onUpdates an existing secret.
Only the owner of the universe can update secrets. For group-owned universes, only the group owner or authorized members can update secrets.
Only the secret content, key_id, and domain can be updated - the secret ID cannot be changed.
To encrypt the updated secret:
- Get the current public key using the GetPublicKey endpoint
- Encrypt your new secret content using LibSodium sealed box
- Base64 encode the encrypted content
Include the key_id from the public key response in the request.
For an example, see the Secrets store guide.
Request
- Base URLhttps://apis.roblox.com
- URLhttps://apis.roblox.com/cloud/v2/universes/{universeId}/secrets/{secretId}
- Auth
- API key in header x-api-key
- or OAuth 2Authorization code: https://apis.roblox.com/oauth/v1/authorizeToken URL: https://apis.roblox.com/oauth/v1/token
Path parameters
The universe ID
The ID of the secret to update
Request body
Response
OK
Changes
- breaking
the
request property format changed from no format todate-time - breaking
the
request property format changed from no format todate-time - breaking
the
response's property type changed fromstringtointeger, and format from no format toint32for status - breaking
the
response's property type changed fromstringtointeger, and format from no format toint32for status - breaking
the
response's property type changed fromstringtointeger, and format from no format toint32for status
- breaking