POST api/asset/category/create

Create assets category

Request Information

Parameters

NameDescriptionAdditional information
asset_category_model
The assets category information

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "description": "sample string 1",
  "name": "sample string 2",
  "provider_id": 3,
  "brand_id": 4,
  "fields": [
    {
      "name": "sample string 1",
      "type": "sample string 2"
    },
    {
      "name": "sample string 1",
      "type": "sample string 2"
    },
    {
      "name": "sample string 1",
      "type": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<create_asset_category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Business">
  <brand_id>4</brand_id>
  <description>sample string 1</description>
  <fields>
    <asset_field_create_model>
      <name>sample string 1</name>
      <type>sample string 2</type>
    </asset_field_create_model>
    <asset_field_create_model>
      <name>sample string 1</name>
      <type>sample string 2</type>
    </asset_field_create_model>
    <asset_field_create_model>
      <name>sample string 1</name>
      <type>sample string 2</type>
    </asset_field_create_model>
  </fields>
  <name>sample string 2</name>
  <provider_id>3</provider_id>
</create_asset_category>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "id": 1,
  "errors": [],
  "is_valid": true
}

application/xml, text/xml

Sample:
<create_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">
  <errors />
  <is_valid>true</is_valid>
  <id>1</id>
</create_result>