# Set a campaign's report variables (/docs/api-reference/bulk-calls/updateBulkCallReportVariables)

> Choose which extracted variables the campaign report counts, as free text or as a fixed set of values. Replaces the whole list; send [] to clear it.

**PUT** `/calls/bulk_call/{bulk_call_id}/report_variables`

Choose which extracted variables the campaign report counts, as free text
or as a fixed set of values. Replaces the whole list; send `[]` to clear it.

```yaml
operationId: updateBulkCallReportVariables
parameters:
  - in: path
    name: bulk_call_id
    required: true
    schema:
      type: integer
    description: Id of the bulk call campaign.
requestBody:
  required: true
  content:
    application/json:
      schema:
        type: object
        required:
          - variable_config
        properties:
          user_id:
            type: integer
            description: |
              Reseller keys only: act as one of your clients by its user id. Omit
              it to act on your own account.
              [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
            example: 1234
          variable_config:
            type: array
            items:
              type: object
              required:
                - variable_name
              properties:
                variable_name:
                  type: string
                  description: The extracted variable's name, as set on the agent.
                variable_type:
                  type: string
                  enum:
                    - text
                    - enum
                  default: text
                enum_values:
                  type: array
                  items:
                    type: string
                  description: With `enum`, the values to count.
      example:
        variable_config:
          - variable_name: interested
            variable_type: enum
            enum_values:
              - 'yes'
              - 'no'
responses:
  '200':
    description: The report variables as saved.
    content:
      application/json:
        schema:
          type: object
          properties:
            success:
              type: boolean
            variable_config:
              type: array
              items:
                type: object
                additionalProperties: true
  '400':
    description: The list is not valid. Nothing changed.
  '403':
    description: The API key's user cannot change bulk calls.
  '404':
    description: No such campaign in your organization.
```

**curl**

```bash
curl -X PUT "https://omnidim.io/api/v1/calls/bulk_call/{bulk_call_id}/report_variables" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "variable_config": [
    {
      "variable_name": "interested",
      "variable_type": "enum",
      "enum_values": [
        "yes",
        "no"
      ]
    }
  ]
}'
```