Skip to main content
PATCH
/
api
/
credentials
/
{id}
curl --request PATCH \
  --url http://localhost:3000/api/v1/credentials/cred_123abc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "data": {
      "name": "OpenAI Production - Updated",
      "apiKey": "sk-new-key...",
      "isValid": true,
      "proxy": false
    }
  }'
{
  "success": true,
  "message": "Credential updated successfully"
}

Path Parameters

id
string
required
Credential ID to update

Body Parameters

data
object
required
Update data object

Response

success
boolean
Indicates if the credential was updated successfully
message
string
Success or error message
curl --request PATCH \
  --url http://localhost:3000/api/v1/credentials/cred_123abc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "data": {
      "name": "OpenAI Production - Updated",
      "apiKey": "sk-new-key...",
      "isValid": true,
      "proxy": false
    }
  }'
{
  "success": true,
  "message": "Credential updated successfully"
}

Notes

  • All fields in the data object are optional
  • Only include the fields you want to update
  • The credential ID cannot be changed
  • Provider type cannot be modified after creation