Skip to main content
PUT
/
firework
/
v2
/
assets
/
{asset_id}
cURL
curl --request PUT \
  --url https://api.flare.io/firework/v2/assets/{asset_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "domain",
  "search_types": [
    "source_code_secrets"
  ],
  "name": "<string>",
  "data": {},
  "id": 123,
  "tenant_id": 123,
  "feed_id": 123,
  "experimental_search_types": [
    "<string>"
  ],
  "v3_refs": {
    "asset_uuid": "<string>"
  },
  "risks": [
    123
  ],
  "fetching_progress": 123,
  "count": 123,
  "urn": "<string>",
  "is_disabled": true,
  "source": "USER",
  "data_updated_at": "2023-11-07T05:31:56Z"
}
'
import requests

url = "https://api.flare.io/firework/v2/assets/{asset_id}"

payload = {
"type": "domain",
"search_types": ["source_code_secrets"],
"name": "<string>",
"data": {},
"id": 123,
"tenant_id": 123,
"feed_id": 123,
"experimental_search_types": ["<string>"],
"v3_refs": { "asset_uuid": "<string>" },
"risks": [123],
"fetching_progress": 123,
"count": 123,
"urn": "<string>",
"is_disabled": True,
"source": "USER",
"data_updated_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'domain',
search_types: ['source_code_secrets'],
name: '<string>',
data: {},
id: 123,
tenant_id: 123,
feed_id: 123,
experimental_search_types: ['<string>'],
v3_refs: {asset_uuid: '<string>'},
risks: [123],
fetching_progress: 123,
count: 123,
urn: '<string>',
is_disabled: true,
source: 'USER',
data_updated_at: '2023-11-07T05:31:56Z'
})
};

fetch('https://api.flare.io/firework/v2/assets/{asset_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flare.io/firework/v2/assets/{asset_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'domain',
'search_types' => [
'source_code_secrets'
],
'name' => '<string>',
'data' => [

],
'id' => 123,
'tenant_id' => 123,
'feed_id' => 123,
'experimental_search_types' => [
'<string>'
],
'v3_refs' => [
'asset_uuid' => '<string>'
],
'risks' => [
123
],
'fetching_progress' => 123,
'count' => 123,
'urn' => '<string>',
'is_disabled' => true,
'source' => 'USER',
'data_updated_at' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.flare.io/firework/v2/assets/{asset_id}"

payload := strings.NewReader("{\n \"type\": \"domain\",\n \"search_types\": [\n \"source_code_secrets\"\n ],\n \"name\": \"<string>\",\n \"data\": {},\n \"id\": 123,\n \"tenant_id\": 123,\n \"feed_id\": 123,\n \"experimental_search_types\": [\n \"<string>\"\n ],\n \"v3_refs\": {\n \"asset_uuid\": \"<string>\"\n },\n \"risks\": [\n 123\n ],\n \"fetching_progress\": 123,\n \"count\": 123,\n \"urn\": \"<string>\",\n \"is_disabled\": true,\n \"source\": \"USER\",\n \"data_updated_at\": \"2023-11-07T05:31:56Z\"\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://api.flare.io/firework/v2/assets/{asset_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"domain\",\n \"search_types\": [\n \"source_code_secrets\"\n ],\n \"name\": \"<string>\",\n \"data\": {},\n \"id\": 123,\n \"tenant_id\": 123,\n \"feed_id\": 123,\n \"experimental_search_types\": [\n \"<string>\"\n ],\n \"v3_refs\": {\n \"asset_uuid\": \"<string>\"\n },\n \"risks\": [\n 123\n ],\n \"fetching_progress\": 123,\n \"count\": 123,\n \"urn\": \"<string>\",\n \"is_disabled\": true,\n \"source\": \"USER\",\n \"data_updated_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.flare.io/firework/v2/assets/{asset_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"domain\",\n \"search_types\": [\n \"source_code_secrets\"\n ],\n \"name\": \"<string>\",\n \"data\": {},\n \"id\": 123,\n \"tenant_id\": 123,\n \"feed_id\": 123,\n \"experimental_search_types\": [\n \"<string>\"\n ],\n \"v3_refs\": {\n \"asset_uuid\": \"<string>\"\n },\n \"risks\": [\n 123\n ],\n \"fetching_progress\": 123,\n \"count\": 123,\n \"urn\": \"<string>\",\n \"is_disabled\": true,\n \"source\": \"USER\",\n \"data_updated_at\": \"2023-11-07T05:31:56Z\"\n}"

response = http.request(request)
puts response.read_body
{
  "asset": {
    "type": "domain",
    "search_types": [
      "source_code_secrets"
    ],
    "name": "<string>",
    "data": {},
    "id": 123,
    "tenant_id": 123,
    "feed_id": 123,
    "experimental_search_types": [
      "<string>"
    ],
    "v3_refs": {
      "asset_uuid": "<string>"
    },
    "risks": [
      123
    ],
    "fetching_progress": 123,
    "count": 123,
    "urn": "<string>",
    "is_disabled": true,
    "source": "USER",
    "data_updated_at": "2023-11-07T05:31:56Z"
  }
}
{
"message": "<string>",
"code": "<string>"
}
DEPRECATED: This endpoint should be replaced by /firework/v4/identifiers/{identifier_id}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

asset_id
integer
required

Body

application/json
type
enum<string>
required
Available options:
domain,
name,
keyword,
github_repository,
username,
email,
search_query,
bin,
ip,
secret,
azure_tenant,
identity,
ransomleak,
external_id,
address_data,
birth_year,
role,
phone_number
Example:

"domain"

search_types
enum<string>[]
required
Available options:
source_code_secrets,
financial_data,
forum_profile,
stack_exchange,
service,
domain,
invalid_credential,
bucket,
blog_post,
seller,
valid_credential,
forum_topic,
chat_message,
bucket_object,
bot,
paste,
mitigated_credential,
stealer_log,
ransomleak,
google,
listing,
leak,
source_code_files,
social_media_account,
forum_post,
docker,
illicit_networks,
open_web,
buckets,
source_code,
leaks,
domains,
forum_content,
blog_content,
profile,
infected_devices,
social_media
name
string
required
Minimum string length: 1
data
object
required
id
integer
tenant_id
integer
feed_id
integer
experimental_search_types
string[]
v3_refs
object
risks
integer[]
fetching_progress
integer
count
integer
urn
string

The uniform resource name of the identifier.

is_disabled
boolean
source
enum<string>
Available options:
USER,
SYSTEM_RELATION,
SELF_ONBOARDING,
ATTRIBUTE,
AUTO_MONITOR,
IDP_SYNC
Example:

"USER"

data_updated_at
string<date-time>

Response

Success

asset
object