Types

Types

Usage

Route : /api/types
Protected : true

Attributes

id : integer
meta_title : translated
name : translated
meta_description : translated
active : boolean
meta_keywords : translated
description : translated
type_id : integer
url_rewrite : translated

Endpoints

GET /
Return Types index list

GET /{id}
Return details of the Type {id}

PUT/store
Requiredid, name
Optionaldescription, url_rewrite, meta_title, meta_description, meta_keywords
Create a Type using request’s body

POST /{id}
Requiredps_id, active, name, description, url_rewrite, meta_title, meta_description, meta_keywords
Update the Type {id} according to the keys and values given in body

DELETE /{id}
Optionaltype: {type_id}
Delete the Type {id}. If specified within the body, replace any model’s type_id using {id} with {type_id}


    • Related Articles

    • Field types

      Boolean : true, false, 0 or 1 Float : will be rounded to the 4th decimal Id : When specified in route, you have to use the ID from your own system. EveryParts will then store it in the field named ps_id. Only exception goes for the products where it ...
    • Types

      This menu clearly displays a list of equipment types with which the store customer will be able to refine their search. Example: Motorcycles, scooters or quads if your field of activity is two-wheelers, or rather slashers and microwaves if it is the ...
    • Exporting to ElasticSearch

      Usage Route : /api/export Protected : true Endpoints GET / Export all your model/product associations to ElasticSearch. DELETE /delete Empty your ElasticSearch index. Warning : this operation is not reversible!
    • Rules of compatibility

      Usage Route : /api/rules Protected : true Endpoints GET / Return Rules index list GET /{id} Return details of the Rule {id} GET /specification/{id} Return Rules’ index list containing specification {id} GET /feature/{id} Return Rules’ index list ...
    • Export to PrestaShop

      Utilisation Route : /api/export_to Protected : true Attributs scope : string (case sensitive) onlyFor : integer startAt : integer onlyMissing : boolean Routes PUT /prestashop Required scope Optional startAt, onlyFor, onlyMissing Exports data to ...