elastic_enterprise_search/_async/client/workplace_search.py [541:573]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        external_user_id: str,
        external_user_properties: t.Optional[
            t.Union[t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]]
        ] = None,
        permissions: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Updates an external identity

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-external-identities-api.html#update-external-identity>`_

        :param content_source_id: Unique ID for a Custom API source, provided upon creation
            of a Custom API Source
        :param external_user_id: Unique identifier of an external user, such as username
            or email address.
        :param external_user_properties:
        :param permissions:
        """
        if content_source_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'content_source_id'")
        if external_user_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'external_user_id'")
        __body: t.Dict[str, t.Any] = {}
        if external_user_properties is not None:
            __body["external_user_properties"] = external_user_properties
        if permissions is not None:
            __body["permissions"] = permissions
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/workplace_search.py [541:573]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        external_user_id: str,
        external_user_properties: t.Optional[
            t.Union[t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]]
        ] = None,
        permissions: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Updates an external identity

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-external-identities-api.html#update-external-identity>`_

        :param content_source_id: Unique ID for a Custom API source, provided upon creation
            of a Custom API Source
        :param external_user_id: Unique identifier of an external user, such as username
            or email address.
        :param external_user_properties:
        :param permissions:
        """
        if content_source_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'content_source_id'")
        if external_user_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'external_user_id'")
        __body: t.Dict[str, t.Any] = {}
        if external_user_properties is not None:
            __body["external_user_properties"] = external_user_properties
        if permissions is not None:
            __body["permissions"] = permissions
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



