younifyd
Menu

Update Common Mapping Settings

Update common mappings

PUT/rest/organizations/{organizationId}/sources/{sourceId}/mappings/common

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Update Common Mapping Settings action (under Source).
  3. Fill in the fields below, then reference the result from later steps as {{updateCommonMappingSettings.response.data}}.

Request

Path parameters

organizationIdstringrequired

The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:** `mycoveocloudv2organizationg8tp8wu3`

sourceIdstringrequired

The unique identifier of the target [source](https://docs.coveo.com/en/246/).<br />**Example:** `mycoveocloudv2organizationg8tp8wu3-gravodalyysjsu34camnvxm2d2y`

Query parameters

rebuildboolean

Whether to rebuild the [source](https://docs.coveo.com/en/246/) after the operation.<br />**Default:** `false`

Default false

Request body

Enter the body as JSON in the step's Body field.

rulesarray<object>

The [mapping](https://docs.coveo.com/en/217/) rules.<br />See [Mapping Rule Syntax Reference](https://docs.coveo.com/en/1839/).

contentarray<string>

The mapping rule statements.<br />**Example:** `["%[internal_rating]"]`<br />See [Mapping Rule Syntax Reference](https://docs.coveo.com/en/1839/).

fieldstring

The name of the target [field](https://docs.coveo.com/en/200/) to populate with the first non-null value yielded by a mapping rule statement from the `content` array.<br />**Example:** `rating`

idstring

The unique identifier of the mapping rule.<br />**Example:** `q5dpywnbpb3ul7xpyodh3e2j7i`

json
{
  "rules": [
    {
      "content": [
        "string"
      ],
      "field": "string",
      "id": "string"
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{updateCommonMappingSettings.response.data.<field>}}.

rulesarray<object>

The [mapping](https://docs.coveo.com/en/217/) rules.<br />See [Mapping Rule Syntax Reference](https://docs.coveo.com/en/1839/).

contentarray<string>

The mapping rule statements.<br />**Example:** `["%[internal_rating]"]`<br />See [Mapping Rule Syntax Reference](https://docs.coveo.com/en/1839/).

fieldstring

The name of the target [field](https://docs.coveo.com/en/200/) to populate with the first non-null value yielded by a mapping rule statement from the `content` array.<br />**Example:** `rating`

idstring

The unique identifier of the mapping rule.<br />**Example:** `q5dpywnbpb3ul7xpyodh3e2j7i`

json
{
  "rules": [
    {
      "content": [
        "string"
      ],
      "field": "string",
      "id": "string"
    }
  ]
}

Need more? See the Coveo guide for connection setup and behaviour shared by every action.