# RecordCompanyRolesInput (/api/reference/inputs/record-company-roles-input)

Which company, and the roles seen.

```graphql
input RecordCompanyRolesInput {
  companyId: ID!
  observedAt: DateTime
  roles: [CompanyRoleInput!]!
  source: String
}
```

### Fields [#fields]

#### [`RecordCompanyRolesInput.companyId`](#company-id) · [`ID!`](/api/reference/scalars/id) `non-null` `scalar` [#company-id]
The id of the company, in the workspace's records.

#### [`RecordCompanyRolesInput.observedAt`](#observed-at) · [`DateTime`](/api/reference/scalars/date-time) `scalar` [#observed-at]
When the roles were seen. Now when left out.

#### [`RecordCompanyRolesInput.roles`](#roles) · [`[CompanyRoleInput!]!`](/api/reference/inputs/company-role-input) `non-null` `input` [#roles]
The roles seen, 200 at most.

#### [`RecordCompanyRolesInput.source`](#source) · [`String`](/api/reference/scalars/string) `scalar` [#source]
The name of the job board or provider the roles were seen on, 100 characters at most (a longer one is cut). `data_layer` when left out or blank. A role is told apart by this and its `externalKey` together.

### Member Of [#member-of]

[`recordCompanyRoles`](/api/reference/mutations/record-company-roles)  `mutation`