---
title: "GET /api/v1/target-assignments/optional-target-assignment-approvals/computer/{computerId}"
method: GET
path: "/api/v1/target-assignments/optional-target-assignment-approvals/computer/{computerId}"
tags: ["TargetAssignments"]
---

# GET /api/v1/target-assignments/optional-target-assignment-approvals/computer/{computerId}

`GET /api/v1/target-assignments/optional-target-assignment-approvals/computer/{computerId}`

## Request

- Base URL: `https://api.immy.bot` (the document declares no server; this is the origin it was published from)
- URL: `https://api.immy.bot/api/v1/target-assignments/optional-target-assignment-approvals/computer/{computerId}`
- Auth: none declared

## Path parameters

- `computerId` integer, required

## Response `200`

OK

- GetOptionalTargetAssignmentApprovalResponse[]
  - `id` integer
  - `targetAssignmentId` integer
  - `approved` 'Pending' | 'Approved' | 'Denied': The string or integer value may be used. Pending = 1, Approved = 2, Denied = 3
  - `targetType` 'All' | 'Computer' | 'Metascript' | 'Person' | 'AzureGroup' | 'TenantMetascript' | 'AllForTenant' | 'ProviderDeviceGroup' | 'ProviderClientGroup' | 'TenantFilterScript' | 'FilterScript' | 'AllTenants' | 'SpecificTenant' | 'Tag' | 'TenantTag' | 'CloudTag' | 'CloudProviderClientGroup': The string or integer value may be used. All = 1, Computer = 2, Metascript = 5, Person = 7, AzureGroup = 8, TenantMetascript = 20, AllForTenant = 21, ProviderDeviceGroup = 22, ProviderClientGroup = 23, TenantFilterScript = 24, FilterScript = 25, AllTenants = 28, SpecificTenant = 29, Tag = 30, TenantTag = 31, CloudTag = 40, CloudProviderClientGroup = 42
  - `target` string, nullable
  - `updatedBy` integer, nullable
  - `createdBy` integer, nullable
  - `updatedDateUTC` string, date-time
  - `createdDateUTC` string, date-time
  - `maintenanceType` 'GlobalSoftware' | 'LocalSoftware' | 'WindowsUpdate' | 'ChocolateySoftware' | 'NiniteSoftware' | 'LocalMaintenanceTask' | 'GlobalMaintenanceTask' | 'AgentUpdate': The string or integer value may be used. GlobalSoftware = 0, LocalSoftware = 1, WindowsUpdate = 2, ChocolateySoftware = 3, NiniteSoftware = 4, LocalMaintenanceTask = 5, GlobalMaintenanceTask = 6, AgentUpdate = 7

---

[API](https://skmtc.dev/immy/apis/immy-bot-api.md) · [All operations](https://skmtc.dev/immy/apis/immy-bot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/immy/apis/immy-bot-api/revisions/559d0e4b39d3?raw)
