---
schema_version: "1"
id: 4846f8c3235613837a502a2ba424d6394306f50f8b3d7b15264187e7fd7fd7b7
title: Assign Promotions to Campaigns with Enhanced Data OCAPI Endpoints
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_enhanced_api_endpoints_b2c_21_3_w857876_lb.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_enhanced_api_endpoints_b2c_21_3_w857876_lb.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8b6393a3e3181e1e81e53eaabc5af4184b989f14e0686d9e49e63f21a7050e98
description: "`/sites/{site_id}/campaigns/{campaign_id}/promotions/{promotion_id}` now accepts a body for the `PUT` and `PATCH` methods. This body is identical to the response of the `/sites/{site_id}/promotion_campaign_assignment_search` API, but it now supports a new `required_qualifier` property. With this body, you can set qualifiers and other properties, such as rank, on a promotion assignment when you create it. You can also update these values."
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Assign Promotions to Campaigns with Enhanced Data OCAPI Endpoints

\`/sites/{site\_id}/campaigns/{campaign\_id}/promotions/{promotion\_id}\` now accepts a body for the \`PUT\` and \`PATCH\` methods. This body is identical to the response of the \`/sites/{site\_id}/promotion\_campaign\_assignment\_search\` API, but it now supports a new \`required\_qualifier\` property. With this body, you can set qualifiers and other properties, such as rank, on a promotion assignment when you create it. You can also update these values.