PUT
/
targets
/
{targetid}
curl --request PUT \
  --url http://base.url.com/targets/{targetid} \
  --header 'Content-Type: application/json' \
  --header 'x-phishy-api-key: <api-key>' \
  --data '{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "[email protected]",
  "position": "<string>",
  "age": 123,
  "gender": "Male",
  "phone_number": "<string>",
  "groups": [
    "<string>"
  ]
}'
{
  "name": "<string>",
  "surname": "<string>",
  "group": "<string>",
  "email": "[email protected]",
  "position": "<string>",
  "phone": "<string>",
  "gender": "male",
  "age": 123
}

Authorizations

x-phishy-api-key
string
header
required

Body

application/json

Target to update

The body is of type object.

Response

200
application/json

Target updates successfully

The response is of type object.