---
title: "overwriteAssetIDsWithTxlogAssetIDs order"
method: PATCH
path: "/ops/overwrite-asset-ids-with-txlog-asset-id"
tags: ["ops"]
---

# overwriteAssetIDsWithTxlogAssetIDs order

`PATCH /ops/overwrite-asset-ids-with-txlog-asset-id`

Use to overwrite the actual asset_id with the asset_id from the txlog

## Request body

- OverwriteAssetIDsPayload
  - `assets` AssetIDs[], required — The list of asset IDs we want to update
    - `current_id` string, regexp, required — Asset ID from the database
    - `new_id` string, regexp, required — Asset ID from the Txlog

## Response `200`

OK response.

- OverwriteAssetIDsResult
  - `unprocessed_ids` string[], required — The list of asset IDs that were not updated
  - `updated_assets` Asset[], required — The list of assets that were updated
    - `belongs_to_asset_id` string, regexp — reference to parent asset ID, if this asset is a child
    - `id` string, regexp, required — asset ID
    - `offer_line_id` string, regexp — reference to the originating offer_line
    - `product_id` string, regexp, required — product id inside the topi catalog
    - `requires_serial_number` boolean — if the asset requires a serial number
    - `seller_product_references` SellerProductReference[], required — All seller's own references for this asset
      - `reference` string, required — The ID related with the source. This value should be unique for that source.
      - `source` string, required — The seller internal source name for this reference type.
    - `serial_number` string — This is an id that identifies this asset as unique
    - `status` 'created' | 'shipped' | 'return_completed' | 'purchased' | 'return_in_progress' | 'upgrade_in_progress' | 'purchase_in_progress' | 'upgrade_in_progress_in_term' | 'return_in_progress_in_term' | 'ops_canceled' | 'ending_soon' | 'overdue', required
    - `title` string, required — The name of the asset
    - `tracking_url` string — the tracking url of this specific asset

## Other responses

- `400` — BadRequest: Bad Request response.
- `401` — Unauthorized: Unauthorized response.
- `403` — InvalidScopes: Forbidden response.

---

[API](https://skmtc.net/topi/apis/topi-public-api.md) · [All operations](https://skmtc.net/topi/apis/topi-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/topi/topi-public-api/revisions/fa134b7fc959/schema)
