---
agentTools:
  projectIndex: https://docs.ngpvan.com/llms.txt
---

# Added ability to Apply Activist Codes without creating Contact History

The [/people/\{vanId}/canvassResponses](https://docs.ngpvan.com/reference/peoplevanidcanvassresponses) (or [/people/\{personIdType}:\{personId}/canvassResponses](https://docs.ngpvan.com/reference/peoplepersonidtypepersonidcanvassresponses) ) endpoint is your go-to for applying [Activist Codes](https://docs.ngpvan.com/reference/activist-codes) to people. You can now use this endpoint to assign an Activist Code without creating a corresponding Contact History record by setting `omitActivistCodeContactHistory` on the optional `canvassContext` property to `true`. This will work as long as all responses in the `response` array are of `type` `ActivistCode`.

```json
{
  "canvassContext": {
  	"omitActivistCodeContactHistory": true
  },
  "responses": [
    {
      "type": "ActivistCode",
      "action": "Apply",
      "activistCodeId": 123456
    },
    {
      "type": "ActivistCode",
      "action": "Apply",
      "activistCodeId": 543221
    }
  ]
}
```