Management API
...
Product
Features

Import Product Features From CSV

5min

Imports product features from CSV, if requesting manager has access permissions to it.

URL : /api/v1/product-features/import_from_csv/

Method : POST

Content-Type

Required Content-Type is multipart/form-data with the following single key value pair:

  • Key: file
  • Value: {csv file from which to import}

Required CSV Headers

  • name
  • code
  • product__short_code

Possible CSV Headers

  • code– String
  • product__short_code– String
  • feature_type - String
    • Choices: activation, consumption
  • max_consumption - Integer
  • allow_overages - Boolean
  • max_overages - Integer
  • reset_consumption - Boolean
  • consumption_period - String
    • Choices: daily, weekly, monthly, annually
  • is_floating - Boolean
  • is_floating_cloud -Boolean
  • floating_users - Integer
  • floating_timeout - Integer

Data example

Text


Success Response

Code : 200 OK

Content examples :

JSON


job_id from response can be used to query the import result.