---
title: "Get linked source templates update based on the ot-collector tags user is wants to update."
method: POST
path: "/v1/sourceTemplate/getLinkedSourceTemplatesImpact"
tags: ["sourceTemplateManagementExternal"]
---

# Get linked source templates update based on the ot-collector tags user is wants to update.

`POST /v1/sourceTemplate/getLinkedSourceTemplatesImpact`

Given the set of tags user wants to update, display the list of source templates that will be linked/unlinked to the otCollector.

## Request body

- LinkedSourceTemplatesUpdateRequest
  - `collectorId` string, required — otCollector id for which tags are edited.
  - `tags` object — JSON map of key-value metadata to apply to the otCollector.
  - `updatedName` string — Updated Name of the otCollector.

## Response `200`

A list of source templates whose linking to the otCollector will be impacted.

- LinkedSourceTemplatesUpdateResponse — linked source template details based on the ot-collector tags user wants to update.
  - `collectorId` string, required — otCollector id for which tags are edited.
  - `addedSourceTemplates` LinkingUpdatedSourceTemplateDetails[] — list of sourceTemplates which are linked to otCollector.
    - `sourceTemplateDefinition` SourceTemplateDefinition, required — response definition of source template.
      - `schemaRef` SchemaRef — schema reference for source template.
        - `type` string, required — type of source template.
      - `id` string — id of source template.
      - `inputJson` object — inputJson of source template
      - `config` string — configuration of source template
      - `selector` Selector — Agent selector conditions
        - `tags` array[] — tags filter for agents
          - OtTag[]
            - `key` string, required — key of the given tag.
            - `values` string[], required — values of the given tag.
        - `names` string[] — names to select custom agents
      - `totalCollectorLinked` integer — count of total collector linked with this source template.
      - `createdAt` string, date-time — Creation timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
      - `modifiedAt` string, date-time — Modification timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
      - `createdBy` string — Id of the user who created source template
      - `modifiedBy` string — Id of the user who last modified the source template
      - `status` 'enable' | 'disable' — Status of Source template
      - `isEnabled` boolean — A boolean parameter to get if the source template is enabled.
    - `reasonTags` array[], required — tags which are responsible for source template and collector linking impact.
      - CollectorTag[]
        - `key` string, required — Key of the given tag.
        - `value` string — Values of the given tag.
  - `removedSourceTemplates` LinkingUpdatedSourceTemplateDetails[] — list of sourceTemplates which are removed from otCollector linking.
    - `sourceTemplateDefinition` SourceTemplateDefinition, required — response definition of source template.
      - `schemaRef` SchemaRef — schema reference for source template.
        - `type` string, required — type of source template.
      - `id` string — id of source template.
      - `inputJson` object — inputJson of source template
      - `config` string — configuration of source template
      - `selector` Selector — Agent selector conditions
        - `tags` array[] — tags filter for agents
          - OtTag[]
            - `key` string, required — key of the given tag.
            - `values` string[], required — values of the given tag.
        - `names` string[] — names to select custom agents
      - `totalCollectorLinked` integer — count of total collector linked with this source template.
      - `createdAt` string, date-time — Creation timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
      - `modifiedAt` string, date-time — Modification timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
      - `createdBy` string — Id of the user who created source template
      - `modifiedBy` string — Id of the user who last modified the source template
      - `status` 'enable' | 'disable' — Status of Source template
      - `isEnabled` boolean — A boolean parameter to get if the source template is enabled.
    - `reasonTags` array[], required — tags which are responsible for source template and collector linking impact.
      - CollectorTag[]
        - `key` string, required — Key of the given tag.
        - `value` string — Values of the given tag.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/18a824df1e78/schema)
