PUT
/
templates
/
{id}
cURL
curl --request PUT \
  --url http://base.url.com/templates/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-phishy-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "subject": "<string>",
  "text": "<string>",
  "html": "<string>",
  "attachment_name": "<string>",
  "attachmentInBody": true,
  "attachmentRedirectToPhished": true,
  "is_check_clicked_link": true,
  "is_check_submitted_data": true,
  "is_check_file_downloaded": true,
  "is_check_file_executed": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "content": "<string>"
}

Authorizations

x-phishy-api-key
string
header
required

Body

application/json

Updated details of the template

The body is of type object.

Response

200
application/json

Template updated successfully

The response is of type object.