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
Return details of the Type {id}
PUT | /store |
Required | id, name |
Optional | description, url_rewrite, meta_title, meta_description, meta_keywords |
Create a Type using request’s body
POST | /{id} |
Required | ps_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} |
Optional | type: {type_id} |
Delete the Type {id}. If specified within the body, replace any model’s type_id using {id} with {type_id}