PUT
/
profiles
/
{smtp_id}
cURL
curl --request PUT \
  --url http://base.url.com/profiles/{smtp_id} \
  --header 'Content-Type: application/json' \
  --header 'x-phishy-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "username": "<string>",
  "password": "<string>",
  "host": "<string>",
  "port": 123,
  "interface_type": "SMTP",
  "from_address": "<string>",
  "ignore_cert_errors": false,
  "is_secure": true
}'
This response does not have an example.

Authorizations

x-phishy-api-key
string
header
required

Body

application/json

Updated profile information

name
string
required

Updated descriptive name for the SMTP configuration

username
string
required

Updated username for SMTP authentication

password
string<password>
required

Updated password for SMTP authentication

host
string
required

Updated SMTP server host address

port
integer
required

Updated SMTP server port

interface_type
enum<string>
required

Type of the email sending interface

Available options:
SMTP,
API
from_address
string
required

Updated email address to use in the 'From' field

ignore_cert_errors
boolean
default:false
required

Specifies if SSL/TLS certificate errors should still be ignored

is_secure
boolean
default:true
required

Indicates if the connection should now be secured (SSL/TLS)

Response

Updated profile response