---
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`

## Request

- Base URL: `https://pro.gofundme.com/api/2.0`
- URL: `https://pro.gofundme.com/api/2.0/consumer-charity-mappings/{id}/set-primary`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `/oauth2/auth`
  - OAuth 2
    - Password
    - Token URL: `/oauth2/auth`

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.dev/gofundme/apis/gofundme-pro-api.md) - [All operations](https://skmtc.dev/gofundme/apis/gofundme-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gofundme/apis/gofundme-pro-api/revisions/094a1e510fe9?raw)
