cURL
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 }
Updates a specific target by ID
Target to update
The body is of type object.
object
Target updates successfully
The response is of type object.