Skip to main content
POST
/
v1
/
public
/
migrations
/
global-japan
/
companies
/
price-table
/
upsert
Upsert Company Price Table
curl --request POST \
  --url https://api.sanka.com/v1/public/migrations/global-japan/companies/price-table/upsert \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "companies": [
    {
      "company_external_id": "<string>",
      "price_percentage": 123
    }
  ]
}
'
{
  "ok": true,
  "results": [
    {
      "external_id": "<string>",
      "object_id": "<string>",
      "record_id": 123,
      "created": false,
      "errors": []
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
companies
GlobalJapanCompanyPriceTableIn · object[]
required

Response

200 - application/json

OK

ok
boolean
required
results
UpsertResult · object[]
required