---
title: "Get circuits and components"
method: POST
path: "/assets/assetcomponents"
tags: ["Assets"]
---

# Get circuits and components

`POST /assets/assetcomponents`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/assets/assetcomponents`
- 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/assetcomponents/post.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves all circuits and components added to the specified parent assets.
            <br />Learn more about [updating assets on work orders](https://servicechannel.atlassian.net/wiki/spaces/SCU/pages/1484194012/Updating+Assets+on+Work+Orders) in ServiceChannel University.

## Request body

- ServiceChannelServicesMessagingEquipmentsAssetComponentsRequest
  - `ParentIds` integer[]
  - `OnlyRefrigerantTrackingAssets` boolean

## Response `200`

The circuits and components for the specified parent assets are in the response.

## Other responses

- `401`: The request is not authorized. <br/>Error codes: 504 — API call rejected by security permissions
- `500`: The server was unable to complete the request due to an internal error. <br/>Error codes: 501 — Object reference is not set to an instance of an object

---

[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)
