Backfill FIGIs for instruments that have none, as a job
POST
/admin/symbology/backfill
curl --request POST \ --url http://localhost:3001/admin/symbology/backfill \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{"limit":0}'import requests
url = "http://localhost:3001/admin/symbology/backfill"
payload = { "limit": 0 }headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())use serde_json::json;use reqwest;
#[tokio::main]pub async fn main() { let url = "http://localhost:3001/admin/symbology/backfill";
let payload = json!({"limit": 0});
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap()); headers.insert("Content-Type", "application/json".parse().unwrap());
let client = reqwest::Client::new(); let response = client.post(url) .headers(headers) .json(&payload) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}Runs in the background and answers at once with the job id; the counts that used to be the response body are the job’s result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
limit
integer format: int64
Example generated
{ "limit": 1}Responses
Section titled “Responses”Started; follow it at /admin/jobs/{job_id}; the result is a BackfillResult
Media typeapplication/json
object
job_id
required
string format: uuid
Example generated
{ "job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}