Skip to content

Update Offer Import Context

Request

Update an offer import context by its ID. Renaming to an existing name is rejected with 409.

Security
BearerAuth
Path
idstringrequired

The ID of the offer import context to update.

Headers
Acceptstring(OfferImportContextAcceptHeader)required

Set this to application/api.luminovo.offer-import-context-v1+json.

Value:"application/api.luminovo.offer-import-context-v1+json"
Bodyapplication/jsonrequired
namestring or null
descriptionstring or null
PATCH
/offer-import-contexts/{id}
curl -i -X PATCH \
  'https://api.luminovo.com/offer-import-contexts/{id}' \
  -H 'Accept: application/api.luminovo.offer-import-context-v1+json' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "description": "string"
  }'

Responses

Offer import context updated.

Bodyapplication/json
idstring, (uuid)required
namestringrequired
descriptionstring or null
originstring(types.offer_import_context.v1.Origin)required

The channel an import context's offers arrived through.

  • CsvIntegration: the nightly job pulling CSV files from a customer's ERP storage.
  • ApiIntegration: programmatic import through the offers API.
  • ManualFileUpload: a CSV file uploaded in the UI.
Enum:"CsvIntegration""ApiIntegration""ManualFileUpload"
created_atstring, (date-time)required
updated_atstring, (date-time)required
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "origin": "CsvIntegration", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }