POST https://webapi.mymarketing.co.il/api/account/contentCategories
Create a new category.
Request Information
URI Parameters
Body Parameters
Name
Description
Type
Additional information
name
Category name
string
display_order
Display Order
integer
is_default
If the Category is Default
boolean
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "display_order": 2, "is_default": true }
application/xml, text/xml
Sample:
<ApiContentCategoryPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <display_order>2</display_order> <is_default>true</is_default> <name>sample string 1</name> </ApiContentCategoryPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Name
Description
Type
Additional information
id
Category id
integer
created
Date Created
date
name
Category name
string
display_order
Display Order
integer
is_default
If the Category is Default
boolean
Response Formats
application/json, text/json
Sample:
{ "id": 1, "created": "2016-12-24T14:12:12", "name": "sample string 3", "display_order": 4, "is_default": true }
application/xml, text/xml
Sample:
<ApiContentCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <display_order>4</display_order> <is_default>true</is_default> <name>sample string 3</name> <created>2016-12-24T14:12:12</created> <id>1</id> </ApiContentCategory>