Types

Types

Use

Road:/api/types
Protected:true

Attributes

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

Roads

Get/
Returns the list of types

Get/{id}
Returns details of the type whose ID is {id}

Get/url/{url_rewrite}
Returns details of the type whose rewritten URL is {url_rewrite}

Get/manufacturers/{id}
Returns manufacturer details attached to the type whose ID is {id}

Put/store
Requiredid, name
Optionaldescription, url_rewrite, meta_title, meta_description, meta_keywords
Create a type using the body of the request

Post/{id}
Requiredps_id, active, name, description, url_rewrite, meta_title, meta_description, meta_keywords
Updates the type whose ID is {id} based on the keys and values given in the body of the request

Delete/{id}
Optionaltype: {type_id}
Removes the type whose ID is {id}. If specified, replace the type deleted with the type given in parameter{type_id} for all models using the old one.

    • 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 ...
    • Group actions for types

      After selecting at least one of the listed types, the Group Actions menu appears to be side of multiple election shares. The various Group Actions available are as follows: Activate the election Disable the election Delete the election
    • 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

      Use Road:/api/rules Protected:true Roads Get / Returns the list of existing compatibility rules Get /{id} Returns the details of the rule whose ID is {id} Get /specification/{id} Returns the list of rules containing model carcatetristics whose ID is ...