Skip to content
Community forum

Moving records from one project to another

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

We loaded our product catalogue into a staging project and now want it in the production project. There's no move call. How do we get the records across?

Link

1 answer

Accepted answer
Accepted answer

There's no move. fq_name, parent_type and parent_uuid are fixed after create, so a record can't change project. Copy it instead: read from the source project, create in the target.

  1. Read with a credential for the source project. A plain list is clamped to the token's project; page POST /list-bulk with cursor, and always send limit.
  2. Check the target project has the same schemas. GET /api/v1/projects/{project_uuid}/schemas lists a project's schemas, so compare the two.
  3. Strip uuid, fq_name, parent_type, parent_uuid, created_at and updated_at from each row, then create with a credential for the target project. Without fq_name, Supero derives it from the session's domain, project and tenant. POST /{type}/batch with "upsert": true and match_fields on a stable field such as external_id makes re-runs safe.

The copies get new uuids, so references between records have to be re-pointed at the new ones. Compare record counts on both sides afterwards rather than trusting a 200.

Supero Platform teamSupero team answered
Link

Your answer

Moving records from one project to another | Supero Community