---
updatedAt: 2026-06-28T20:05:09.000Z
agentTools:
  projectIndex: https://developers.taboola.com/backstage-api/llms.txt
---

# Postal Codes Targeting Restrictions Object

To [update](https://developers.taboola.com/backstage-api/reference/update-targeted-postal-codes) targeted *postal codes* for a specified campaign, submit a *Targeting Restrictions Object* to the `targeting/postal_code` resource - see the object schema below. A successful response will contain the same *Targeting Restrictions Object*.

Note that the [campaigns](https://developers.taboola.com/backstage-api/docs/campaign-postal-code-targeting) resource itself does *not* store a direct reference to this *Targeting Restrictions Object*. Instead, it stores a [Targeting Object](https://developers.taboola.com/backstage-api/docs/targeting-object) with an `href` property. The `href` property contains the relevant endpoint URL for [fetching](https://developers.taboola.com/backstage-api/reference/get-targeted-postal-codes) the Targeting Restrictions Object.

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Name
      </th>

      <th style={{ textAlign: "left" }}>
        Modifier and Defaults
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        type
      </td>

      <td style={{ textAlign: "left" }}>
        Required
      </td>

      <td style={{ textAlign: "left" }}>
        String<br/>

        * *Possible values\*\*:\&#xA;*&#x49;NCLUD&#x45;*\
          The values in the collection should be*include&#x64;*(targeted).\&#xA;*&#x45;XCLUD&#x45;*\
          The values in the collection should be*exclude&#x64;*.\&#xA;*&#x41;LL\*\
          Default) No restrictions - target all options.
      </td>

      <td style={{ textAlign: "left" }}>
        Type of targeting - whether the listed values should be *excluded* (EXCLUDE) or *included* (INCLUDE).<br/>\
        ALL indicates that there is *no* targeting.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        collection
      </td>

      <td style={{ textAlign: "left" }}>
        Required
      </td>

      <td style={{ textAlign: "left" }}>
        Array \<Long>
      </td>

      <td style={{ textAlign: "left" }}>
        List of postal codes
      </td>
    </tr>
  </tbody>
</Table>

> 🚧
>
> You *must* adhere to the restrictions defined for each field. Otherwise, the server will return **400 Bad Request**.