GET api/Asset?assetCategoryId={assetCategoryId}&offset={offset}&page_size={page_size}

Retrieves assets by Asset Category Id

Request Information

Parameters

NameDescriptionAdditional information
assetCategoryId
Asset Category Id

Define this parameter in the request URI.

offset
The number of asset items to skip

Define this parameter in the request URI.

page_size
The number of asset items to retireve (max is 100)

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "asset_category_id": 1,
    "contact_ids": [
      1,
      2,
      3
    ],
    "customer_id": 2,
    "provider_id": 3,
    "values": [
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      },
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      },
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      }
    ],
    "id": 1
  },
  {
    "asset_category_id": 1,
    "contact_ids": [
      1,
      2,
      3
    ],
    "customer_id": 2,
    "provider_id": 3,
    "values": [
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      },
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      },
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      }
    ],
    "id": 1
  },
  {
    "asset_category_id": 1,
    "contact_ids": [
      1,
      2,
      3
    ],
    "customer_id": 2,
    "provider_id": 3,
    "values": [
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      },
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      },
      {
        "custom_field_id": 1,
        "date_last_modified": "2020-01-21T19:56:19.7144216-05:00",
        "value": "sample string 3"
      }
    ],
    "id": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfasset xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Business">
  <asset>
    <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
    <asset_category_id>1</asset_category_id>
    <contact_ids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
      <d3p1:long>3</d3p1:long>
    </contact_ids>
    <customer_id>2</customer_id>
    <provider_id>3</provider_id>
    <values>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
    </values>
  </asset>
  <asset>
    <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
    <asset_category_id>1</asset_category_id>
    <contact_ids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
      <d3p1:long>3</d3p1:long>
    </contact_ids>
    <customer_id>2</customer_id>
    <provider_id>3</provider_id>
    <values>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
    </values>
  </asset>
  <asset>
    <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
    <asset_category_id>1</asset_category_id>
    <contact_ids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
      <d3p1:long>3</d3p1:long>
    </contact_ids>
    <customer_id>2</customer_id>
    <provider_id>3</provider_id>
    <values>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
      <asset_value>
        <custom_field_id>1</custom_field_id>
        <date_last_modified>2020-01-21T19:56:19.7144216-05:00</date_last_modified>
        <value>sample string 3</value>
      </asset_value>
    </values>
  </asset>
</ArrayOfasset>