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
}
}'
const response = await fetch('http://localhost:3000/api/v1/credentials/cred_123abc', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: {
name: "OpenAI Production - Updated",
apiKey: "sk-new-key...",
isValid: true,
proxy: false
}
})
});
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/credentials/cred_123abc"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
payload = {
"data": {
"name": "OpenAI Production - Updated",
"apiKey": "sk-new-key...",
"isValid": True,
"proxy": False
}
}
response = requests.patch(url, headers=headers, json=payload)
data = response.json()
{
"success": true,
"message": "Credential updated successfully"
}
{
"success": false,
"message": "Unauthorized"
}
{
"success": false,
"message": "Credential not found"
}
Credentials
Update Credential
Updates a specific credential for the authenticated user
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
}
}'
const response = await fetch('http://localhost:3000/api/v1/credentials/cred_123abc', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: {
name: "OpenAI Production - Updated",
apiKey: "sk-new-key...",
isValid: true,
proxy: false
}
})
});
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/credentials/cred_123abc"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
payload = {
"data": {
"name": "OpenAI Production - Updated",
"apiKey": "sk-new-key...",
"isValid": True,
"proxy": False
}
}
response = requests.patch(url, headers=headers, json=payload)
data = response.json()
{
"success": true,
"message": "Credential updated successfully"
}
{
"success": false,
"message": "Unauthorized"
}
{
"success": false,
"message": "Credential not found"
}
Path Parameters
string
required
Credential ID to update
Body Parameters
object
required
Response
boolean
Indicates if the credential was updated successfully
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
}
}'
const response = await fetch('http://localhost:3000/api/v1/credentials/cred_123abc', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: {
name: "OpenAI Production - Updated",
apiKey: "sk-new-key...",
isValid: true,
proxy: false
}
})
});
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/credentials/cred_123abc"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
payload = {
"data": {
"name": "OpenAI Production - Updated",
"apiKey": "sk-new-key...",
"isValid": True,
"proxy": False
}
}
response = requests.patch(url, headers=headers, json=payload)
data = response.json()
{
"success": true,
"message": "Credential updated successfully"
}
{
"success": false,
"message": "Unauthorized"
}
{
"success": false,
"message": "Credential not found"
}
Notes
- All fields in the
dataobject are optional - Only include the fields you want to update
- The credential ID cannot be changed
- Provider type cannot be modified after creation
⌘I

