---
title: "Set a mapping as the primary for its consumer charity ID"
method: POST
path: "/consumer-charity-mappings/{id}/set-primary"
tags: ["Organization Consumer Mappings"]
---

# Set a mapping as the primary for its consumer charity ID

`POST /consumer-charity-mappings/{id}/set-primary`

Switch the primary mapping for a consumer charity ID

## Path parameters

- `id` integer, required

## Response `200`

Primary mapping switched successfully

- OrganizationConsumerMapping
  - `id` integer — Primary identifier of record
  - `organization_id` integer, nullable — Internal organization ID (null if unmatched)
  - `consumer_charity_id` integer — External consumer charity ID
  - `ein` string — EIN without dashes (9 digits)
  - `is_primary` boolean — Whether this is the primary organization for this consumer charity ID
  - `is_matched` boolean — Whether this mapping is matched to an organization (true if organization_id is not null)
  - `created_at` string, date-time — Date/time of record creation
  - `updated_at` string, date-time — Date/time of record last update

## Other responses

- `404` — Mapping not found

---

[API](https://skmtc.net/gofundme/apis/gofundme-pro-api.md) · [All operations](https://skmtc.net/gofundme/apis/gofundme-pro-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gofundme/gofundme-pro-api/revisions/d22bb925eeed/schema)
