algolia/algoliasearch-client-php

feat: add method assignUserIDs

Closed this issue · 0 comments

TL;DR: Add method MCM related method -> assignUserIDs and update the CTS accordingly.

Actions required:

  1. Add method SearchClient::assignUserIDs just like is specified here:

Signature:
function assign_user_ids(userIDs: []string, clusterName: string, opts: request_options) return created_response

The created_response is the same as assign_user_id.

Request:

{
  "method": "POST",
  "url": "/1/clusters/mapping/batch",
  "hostType": "write",
  "body": {
    "cluster": cluster,
    "users": userIDs
  }
}
  1. Update the CTS as specified here: https://github.com/algolia/algoliasearch-client-specs-internal/pull/75/files.

Full details: https://github.com/algolia/algoliasearch-client-specs-internal/issues/69.