cURL
curl --request PATCH \
--url http://127.0.0.1:3333/v3/credentials/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"name": "<string>",
"data": "<unknown>"
}
'import requests
url = "http://127.0.0.1:3333/v3/credentials/{id}"
payload = {
"workspaceId": "<string>",
"name": "<string>",
"data": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '<string>', name: '<string>', data: '<unknown>'})
};
fetch('http://127.0.0.1:3333/v3/credentials/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"credentials": {
"id": "<string>",
"type": "smtp",
"name": "<string>"
}
}Credentials
Update Credentials
Update Credentials with the Sendbot API v3.
PATCH
/
v3
/
credentials
/
{id}
cURL
curl --request PATCH \
--url http://127.0.0.1:3333/v3/credentials/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"name": "<string>",
"data": "<unknown>"
}
'import requests
url = "http://127.0.0.1:3333/v3/credentials/{id}"
payload = {
"workspaceId": "<string>",
"name": "<string>",
"data": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '<string>', name: '<string>', data: '<unknown>'})
};
fetch('http://127.0.0.1:3333/v3/credentials/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"credentials": {
"id": "<string>",
"type": "smtp",
"name": "<string>"
}
}Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
200 - application/json
Default Response
Show child attributes
Show child attributes