---
title: "CompanyContactAssignRoleInput"
description: "Assigning roles to B2B customer at company location."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/inputs/company-contact-assign-role-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/inputs/company-contact-assign-role-input.md'
---
# CompanyContactAssignRoleInput

Assigning roles to B2B customer at company location.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`CompanyContactAssignRoleInput`

## Input Fields

* `companyContactRoleId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the role to assign to a company contact.

* `companyLocationId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the location to assign a role to a contact.

* `companyContactId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the company contact to assign a role to.

## Schema Definition

```graphql
input CompanyContactAssignRoleInput { 
	companyContactRoleId: ID!
	companyLocationId: ID!
	companyContactId: ID! 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-contact-assign-role.md).companyContactAssignRole

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

