# Restriction (/api/reference/objects/restriction)

A do-not-contact rule on a person or a company. This is the record: nothing in Kith ATS refuses a sourcing push or a draft because of it, so whoever sources or writes outreach reads it first.

```graphql
type Restriction {
  company: Company
  id: ID!
  isInForce: Boolean!
  kind: RestrictionKind!
  person: Person
  reason: String
  setAt: DateTime!
  setBy: User
  source: RestrictionSource
  until: Date
}
```

### Fields [#fields]

#### [`Restriction.company`](#company) · [`Company`](/api/reference/objects/company) `object` [#company]
The company it is on.

#### [`Restriction.id`](#id) · [`ID!`](/api/reference/scalars/id) `non-null` `scalar` [#id]
The rule's id.

#### [`Restriction.isInForce`](#is-in-force) · [`Boolean!`](/api/reference/scalars/boolean) `non-null` `scalar` [#is-in-force]
True when the rule holds today: `until` is empty or not yet past.

#### [`Restriction.kind`](#kind) · [`RestrictionKind!`](/api/reference/enums/restriction-kind) `non-null` `enum` [#kind]
What must not be done.

#### [`Restriction.person`](#person) · [`Person`](/api/reference/objects/person) `object` [#person]
The person it is on. Exactly one of `person` and `company` is set.

#### [`Restriction.reason`](#reason) · [`String`](/api/reference/scalars/string) `scalar` [#reason]
Why, in words.

#### [`Restriction.setAt`](#set-at) · [`DateTime!`](/api/reference/scalars/date-time) `non-null` `scalar` [#set-at]
When it was set.

#### [`Restriction.setBy`](#set-by) · [`User`](/api/reference/objects/user) `object` [#set-by]
The member who set it. Null when an automatic process did, or they have left the workspace.

#### [`Restriction.source`](#source) · [`RestrictionSource`](/api/reference/enums/restriction-source) `enum` [#source]
Where the rule came from.

#### [`Restriction.until`](#until) · [`Date`](/api/reference/scalars/date) `scalar` [#until]
The last day it holds. Null means it has no end.

### Member Of [#member-of]

[`AddRestrictionPayload`](/api/reference/objects/add-restriction-payload)  `object` · [`RestrictionEdge`](/api/reference/objects/restriction-edge)  `object` · [`UpdateRestrictionPayload`](/api/reference/objects/update-restriction-payload)  `object`