---
title: TargetInput - Shop Partners API
description: |-
  A Target can be addressed a Role by role name, a Client by GID, or a Namespace/MetaObject by key.

  Target Types:
    Absolute Path: {granteeId: "gid://shopify/Client/1234"}
    Relative Path: {grantee: "my-namespace-key"}
    Role Based Access: {role: ROLE_BASED_CLIENT_GROUP}
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/input-objects/TargetInput
  md: https://shopify.dev/docs/api/shop-partners/latest/input-objects/TargetInput.md
---

# Target​Input

input\_object

A Target can be addressed a Role by role name, a Client by GID, or a Namespace/MetaObject by key.

Target Types: Absolute Path: {granteeId: "gid://shopify/Client/1234"} Relative Path: {grantee: "my-namespace-key"} Role Based Access: {role: ROLE\_BASED\_CLIENT\_GROUP}

## Fields

* grantee

  [String](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  Key of Namespace or MetaObject in your schema.

* grantee​Id

  [String](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  GID for a Client.

* role

  [String](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  GID for Client Role Group.

***

## Mutations using this input

* [metafield​Access​Revoke.targets](https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldAccessRevoke#arguments-targets)

  ARGUMENT

***

## Map

### Mutations using this input

* [metafield​Access​Revoke.targets](https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldAccessRevoke#arguments-targets)