younifyd
Menu

Add Mapping Types Batch

Create mapping rules in batch

POST/rest/organizations/{organizationId}/sources/{sourceId}/mappings/batch/create

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Add Mapping Types Batch action (under Source).
  3. Fill in the fields below, then reference the result from later steps as {{addMappingTypesBatch.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

Response

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

batchOperationIdstring
batchOperationResourcesStatusarray<object>
errorDetailsstring
operationResultstring

One ofSUCCESSERROR

resourceModelobject3 fields

A specific [mapping](https://docs.coveo.com/en/217/) (i.e., a mapping that applies only to a specified [item](https://docs.coveo.com/en/210/) type).

successfulboolean
statusstring

One ofIN_PROGRESSCOMPLETED

json
{
  "batchOperationId": "string",
  "batchOperationResourcesStatus": [
    {
      "errorDetails": "string",
      "operationResult": "SUCCESS",
      "resourceModel": {
        "id": "string",
        "rules": [
          {
            "content": [
              null
            ],
            "field": "string",
            "id": "string"
          }
        ],
        "type": "string"
      },
      "successful": false
    }
  ],
  "status": "IN_PROGRESS"
}

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

Was this page helpful?