Update Smtp Config
PUT
/api/outreach/smtp/config
const url = 'http://localhost:8000/api/outreach/smtp/config';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"smtp_email":"example","smtp_from_name":"example","smtp_host":"example","smtp_max_per_hour":1,"smtp_password":"example","smtp_port":1,"smtp_use_tls":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8000/api/outreach/smtp/config \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "smtp_email": "example", "smtp_from_name": "example", "smtp_host": "example", "smtp_max_per_hour": 1, "smtp_password": "example", "smtp_port": 1, "smtp_use_tls": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
SMTPConfigUpdate
object
Examplegenerated
{ "smtp_email": "example", "smtp_from_name": "example", "smtp_host": "example", "smtp_max_per_hour": 1, "smtp_password": "example", "smtp_port": 1, "smtp_use_tls": true}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}