async updateProfile(request) {
    const id = request.getId();
    const body = request.getBody();
    const userId = request.getKuid();

    const updated = await this.ask("core:security:profile:update", id, body, {
      refresh: request.getRefresh("wait_for"),
      retryOnConflict: request.getInteger("retryOnConflict", 10),
      strict: request.getBoolean("strict"),
      userId,
    });

    global.kuzzle.log.info(
      `[SECURITY] ${SecurityController.userOrSdk(userId)} applied action "${
        request.input.action
      }" on profile "${id}."`,
    );
    return formatProcessing.serializeProfile(updated);
  }
Updates an existing profile

@param {Request} request
@returns {Promise<Object>}