curl --request POST \
--url http://base.url.com/profiles \
--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": true,
"is_secure": false
}'
[
{
"name": "<string>",
"method": "<string>",
"fromAddress": "<string>",
"mailServer": "<string>",
"mailServerPort": 123,
"customPort": false,
"useSSLTLS": false,
"lastUpdatedBy": "<string>",
"lastModified": "<string>"
}
]
Creates a new profile
curl --request POST \
--url http://base.url.com/profiles \
--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": true,
"is_secure": false
}'
[
{
"name": "<string>",
"method": "<string>",
"fromAddress": "<string>",
"mailServer": "<string>",
"mailServerPort": 123,
"customPort": false,
"useSSLTLS": false,
"lastUpdatedBy": "<string>",
"lastModified": "<string>"
}
]
Profile to add
The body is of type object
.
Profile created
The response is of type object[]
.