cURL
curl --request PATCH \ --url https://api.primeintellect.ai/api/v1/secrets/{secret_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "value": "<string>", "description": "<string>" } '
{ "data": { "id": "<string>", "name": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "description": "<string>", "isFile": false, "userId": "<string>", "teamId": "<string>" }, "status": "<string>" }
Update an existing secret.
You can update the name, value, and/or description.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Team ID for team secrets
New name for the secret (must start with uppercase, only uppercase, numbers, underscores)
1 - 255
New value for the secret
1
New description for the secret
500
Successful Response
Response data
Show child attributes
Response status
Was this page helpful?