---
title: "Get asset type groups by tradeId"
method: GET
path: "/assets/{tradeId}/getAssetTypeGroupsByTradeId"
tags: ["Assets"]
---

# Get asset type groups by tradeId

`GET /assets/{tradeId}/getAssetTypeGroupsByTradeId`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/assets/{tradeId}/getAssetTypeGroupsByTradeId`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/assets/:tradeId/getAssetTypeGroupsByTradeId/get.ts> (a function with typed inputs; its response is checked against the schema)

Adds tradeId. Returns list of assetTypeGroup for successful request.

## Path parameters

- `tradeId` integer, required

## Response `200`

Request succeeded and the requested information is in the response.

- ServiceChannelServicesMessagingAssetTypesAssetTypeGroup[]
  - `Id` integer: Unique numeric identifier of the asset type group.
  - `SubscriberId` integer: Unique numeric identifier of the subscriber.
  - `Name` string: The name of the asset type group.
  - `FileName` string: The file name of the image attached to the asset type group. For example, *audioequipment.png* or *AEE323FF8091.jpeg*.
  - `FilePath` string: Path snippet to the full-size image version attached to the asset type group. For example, *#assets/6cb4f87b-3d5f-49ba-9971-11442dcf3d1e*.
  - `ThumbnailPath` string: Path snippet to the reduced-size image version attached to the asset type group. For example, *#assets/7bc49564-5ac4-4002-9ffc-2282483e6df8*.
  - `AssetTypeIds` integer[]: A list of unique numeric identifiers of the asset types.
  - `ImgPath` string: Path to the cloud location of the full-size image version attached to the asset type group.
  - `Uri` string: The URI of the full-size image version attached to the asset type group.
  - `ThumbnailUri` string: The URI of the reduced-size image version attached to the asset type group.
  - `AssetTypeCategoryId` integer: Unique numeric identifier of the asset category.

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters. <br/>Error codes: 503 — Request Data should not be null. User info should not be null. SubscriberId is null. Unknown Asset type;
- `401`: Indicates that the requested resource requires authentication. <br/>Error codes: 504 — API call rejected by security permissions;

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
