curl --location --request POST 'https://api.probely.com/targets/' \
--header 'Content-Type: application/json' \
--data-raw '{
"connected_target": "string",
"environment": "testing",
"labels": [
"string"
],
"name": "Object name",
"report_type": "default",
"scan_profile": "normal",
"site": {
"basic_auth": {
"password": "dolphins",
"username": "probely"
},
"cookies": [
{
"name": "cookie_1",
"value": "cookie_value"
}
],
"desc": "Object description",
"form_login": [
{
"name": "username",
"value": "probely"
}
],
"form_login_check_pattern": "",
"form_login_url": "https://app.probely.com/",
"has_basic_auth": true,
"has_form_login": true,
"headers": [
{
"name": "X-Custom-Header",
"value": "XXXXX"
}
],
"name": "Object name",
"url": "https://app.probely.com",
"whitelist": [
"/private/path/"
]
},
"type": "single"
}'{
"allowed_scan_profiles": [
{
"id": "normal",
"name": "string"
}
],
"assets": [
{
"changed": "2018-01-31T16:32:17.238553Z",
"changed_by": {
"email": "example@probely.com",
"id": "jMXUw-BE_2vd",
"name": "Henrique Cimento"
},
"cookies": [
{
"name": "cookie_1",
"value": "cookie_value"
}
],
"desc": "Object description",
"headers": [
{
"name": "X-Custom-Header",
"value": "XXXXX"
}
],
"host": "string",
"id": "jMXUw-BE_2vd",
"include": true,
"name": "Object name",
"stack": [
"nginx"
],
"verification_date": "2018-01-31T16:32:52.226652Z",
"verification_last_error": "string",
"verification_method": "dns",
"verification_token": "a38351cb-ede8-4dc8-9366-80d3a7042d9a",
"verified": false
}
],
"changed": "2018-01-31T16:32:17.238553Z",
"changed_by": {
"email": "example@probely.com",
"id": "jMXUw-BE_2vd",
"name": "Henrique Cimento"
},
"connected_target": "string",
"enabled": true,
"environment": "testing",
"id": "jMXUw-BE_2vd",
"labels": [
"string"
],
"name": "Object name",
"report_type": "default",
"scan_profile": "normal",
"site": {
"basic_auth": {
"password": "dolphins",
"username": "probely"
},
"changed": "2018-01-31T16:32:17.238553Z",
"changed_by": {
"email": "example@probely.com",
"id": "jMXUw-BE_2vd",
"name": "Henrique Cimento"
},
"cookies": [
{
"name": "cookie_1",
"value": "cookie_value"
}
],
"desc": "Object description",
"form_login": [
{
"name": "username",
"value": "probely"
}
],
"form_login_check_pattern": "",
"form_login_url": "https://app.probely.com/",
"has_basic_auth": true,
"has_form_login": true,
"headers": [
{
"name": "X-Custom-Header",
"value": "XXXXX"
}
],
"host": "app.probely.com",
"id": "jMXUw-BE_2vd",
"name": "Object name",
"stack": [
"nginx"
],
"url": "https://app.probely.com",
"verification_date": "2018-01-31T16:32:52.226652Z",
"verification_last_error": "string",
"verification_method": "dns",
"verification_token": "a38351cb-ede8-4dc8-9366-80d3a7042d9a",
"verified": false,
"whitelist": [
"/private/path/"
]
},
"type": "single"
}