---
title: "createCampaignDomainSlug"
method: POST
path: "/campaigns/{campaign}/domain-slugs"
tags: ["Domain Slug"]
---

# createCampaignDomainSlug

`POST /campaigns/{campaign}/domain-slugs`

Create a Domain Slug for the specified Campaign

## Path parameters

- `campaign` integer, required

## Request body

- object
  - `links_to_donation_page` boolean — Indicates whether the slug should reference the Donation Page for the DomainSlug's Fundraising Entity
  - `value` string — Value of the Domain Slug
  - `domain_id` integer — Primary identifier of associated Domain. If none provided, the default Domain will be used.

## Response `200`

Success

- DomainSlug
  - `created_at` string, date-time — Date/time of initial record creation
  - `deleted_at` string, date-time, nullable — Date/time that record was deleted
  - `domain_id` integer — Primary identifier of associated Domain
  - `fundraising_entity_id` integer — Primary identifier of associated Fundraising Entity
  - `fundraising_entity_type` 'organization' | 'campaign' | 'fundraising_page' | 'fundraising_team' — Type of associated Fundraising Entity
  - `id` integer — Primary identifier of record
  - `links_to_donation_page` boolean — Indicates whether the slug should reference the Donation Page for the DomainSlug's Fundraising Entity
  - `domain_masking_url` string — The domain masking url of the organization
  - `updated_at` string, date-time — Date/time when record was last updated
  - `value` string — Value of the Domain Slug

## Other responses

- `403` — Requester is not authorized to perform action
- `404` — Campaign 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/versions/d22bb925eeed/schema)
