Skip to main content
PATCH
/
api
/
v1
/
secrets
/
{secret_id}
Update Secret
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

secret_id
string
required

Query Parameters

teamId
string | null

Team ID for team secrets

Body

application/json
name
string | null

New name for the secret (must start with uppercase, only uppercase, numbers, underscores)

Required string length: 1 - 255
value
string | null

New value for the secret

Minimum string length: 1
description
string | null

New description for the secret

Maximum string length: 500

Response

Successful Response

data
SecretResponse · object

Response data

status
string | null

Response status