Import the rows from a previewed CSV.
Import the rows from a previewed CSV.
POST
https://app.softsolz.uk/api/v1/services/seo/sites/{site_id}/links/importRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
site_idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
rowsarray of array of stringssRows from the preview.
mappingarray of stringsField per column from the preview.
sourcestringgsc_csv or bing_csv.
filenamestringOriginal file name, for the import history.
Response
Response Body
importobjectThe import record.addedintegerNew links.updatedintegerLinks already known and refreshed.rejectedintegerRows skipped.reject_reasonsarray of objectsWhy rows were skipped.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.seo.importLinks('<site_id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 201
{ "data": { "import": {}, "added": 0, "updated": 0, "rejected": 0, "reject_reasons": [] }}