POST api/asset/create

Create asset

Request Information

Parameters

NameDescriptionAdditional information
asset_model
Asset information

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "asset_name": "sample string 1",
  "asset_category_id": 2,
  "customer_domain": "sample string 3",
  "contact_email": "sample string 4",
  "values": [
    {
      "custom_field_name": "sample string 1",
      "value": "sample string 2"
    },
    {
      "custom_field_name": "sample string 1",
      "value": "sample string 2"
    },
    {
      "custom_field_name": "sample string 1",
      "value": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<create_asset xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Business">
  <asset_category_id>2</asset_category_id>
  <asset_name>sample string 1</asset_name>
  <contact_email>sample string 4</contact_email>
  <customer_domain>sample string 3</customer_domain>
  <values>
    <create_asset_value>
      <custom_field_name>sample string 1</custom_field_name>
      <value>sample string 2</value>
    </create_asset_value>
    <create_asset_value>
      <custom_field_name>sample string 1</custom_field_name>
      <value>sample string 2</value>
    </create_asset_value>
    <create_asset_value>
      <custom_field_name>sample string 1</custom_field_name>
      <value>sample string 2</value>
    </create_asset_value>
  </values>
</create_asset>

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>